utils

package
v0.0.0-...-79c5f0e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFilename

func GenerateFilename(additional string) string

func GetOS

func GetOS() string

Types

type LogLevel

type LogLevel int
const (
	INFO LogLevel = iota << 1
	ERROR
)

type Logger

type Logger interface {
	Info(string)
	Error(string)
	Disable() //don't want to log on google cloud
}

func NewConsoleLogger

func NewConsoleLogger(ll LogLevel) Logger

func NewFileLogger

func NewFileLogger(infof, errorf string, ll LogLevel) Logger

Jump to

Keyboard shortcuts

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