helper

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LogLevelStringDefaultValue = "ERROR"

Variables

This section is empty.

Functions

func CreateThreshold

func CreateThreshold(d time.Duration) <-chan time.Time

func IsDir

func IsDir(path string) bool

func IsExist

func IsExist(path string) bool

func IsNotExist

func IsNotExist(path string) bool

func NewBasicLogger

func NewBasicLogger(logLevel LogLevel) basicLogger

Types

type EmptyCmdError

type EmptyCmdError error

func NewEmptyCmdError

func NewEmptyCmdError() EmptyCmdError

type LogLevel

type LogLevel uint
const (
	ERROR LogLevel = iota
	INFO
	DEBUG
)

type LogLevelString

type LogLevelString string

func (LogLevelString) GetLogLevel

func (l LogLevelString) GetLogLevel() LogLevel

Jump to

Keyboard shortcuts

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