golib

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2020 License: BSD-2-Clause Imports: 1 Imported by: 0

README

Go Lib GoDoc Build Status

Go standard library for cross-cutting concerns. This repo contains utility functions that one might need in day-to-day Go programming work. Currently Golib covers the following topics:

  • Conditional repeated function calling
  • Job dispatching using Goroutines
  • Configurable logging

Installation

go get e13.dev/golib

Documentation

See the GoDoc for reference documentation.

License

This software is distributed under the BSD 2-Clause License, see LICENSE for more information.

Documentation

Overview

Package golib contains handy utility functions to make your day-to-day Go programming more pleasant.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Try

func Try(times uint16, backoffTime time.Duration, f func() error) error

Try calls the given function »f« at most »times« times as long as it returns an error, sleeping the given »backoffTime« in between subsequent calls. If f returns an error on the last try, that error is returned by Try. If times is 0, then f is called indefinitely as long as it returns an error.

Types

This section is empty.

Directories

Path Synopsis
Package logging provides a dead-simple, level-aware logging facility.
Package logging provides a dead-simple, level-aware logging facility.
Package work contains routines to asynchronously dispatch jobs to a fixed set of Goroutines.
Package work contains routines to asynchronously dispatch jobs to a fixed set of Goroutines.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL