util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *slog.Logger

Functions

func ErrorsToStrings

func ErrorsToStrings(errs []error) []string

func GetStatusCode

func GetStatusCode(err error) int

func InitStructLogger

func InitStructLogger(level string)

func Wait

func Wait(ctx context.Context, logger *slog.Logger, signals ...os.Signal)

Types

type FileLogger

type FileLogger struct {
	// contains filtered or unexported fields
}

func NewFileLogger

func NewFileLogger(fileName string, prefix string) *FileLogger

func (FileLogger) Close

func (l FileLogger) Close()

func (FileLogger) Print

func (l FileLogger) Print(v ...interface{})

Jump to

Keyboard shortcuts

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