util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *zap.Logger

Logger returns the global Logger. It's safe for concurrent use.

func Min added in v0.1.3

func Min(a, b int) int

func RandomString

func RandomString(n int) string

func ReplaceGlobals

func ReplaceGlobals(logger *zap.Logger)

ReplaceGlobals replaces the global Logger. It's safe for concurrent use.

func SetLogLevel added in v0.1.3

func SetLogLevel(level LogLevel)

func Sync

func Sync() error

Sync flushes any buffered log entries.

Types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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