helpers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string, cfg interface{}) error

LoadConfig read YAML-formatted config from filename into cfg.

func LogError

func LogError(logger log.Logger, message string, f func() error)

LogError logs any error returned by f; useful when deferring Close etc.

func MinUint32

func MinUint32(a, b uint32) uint32

MinUint32 return the min of a and b.

Types

This section is empty.

Jump to

Keyboard shortcuts

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