Documentation ¶
Index ¶
- Variables
- func CreateAndRegisterLogger(debug bool)
- func RegisterLogger(logger *zap.Logger)
- func SetExitCode(err error)
- func SetStderr(stderr io.Writer)
- func SetStdout(stdout io.Writer)
- func SetupExitHandler(ctx context.Context) (context.Context, func())
- func StructSliceToString2DSlice(slice interface{}) ([][]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Stderr io.Writer
View Source
var Stdout io.Writer
Functions ¶
func CreateAndRegisterLogger ¶
func CreateAndRegisterLogger(debug bool)
func RegisterLogger ¶
func SetExitCode ¶
func SetExitCode(err error)
SetExitCode sets the exit code to 1 if the error is not a context.Canceled error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.