Documentation
¶
Index ¶
- Variables
- func AppendIfNotNil(err *error, args ...interface{}) bool
- func Assert(b bool, args ...interface{}) bool
- func Blue(args ...interface{})
- func Concat(args ...interface{}) string
- func ConcatWith(separator string, args ...interface{}) (str string)
- func Cyan(args ...interface{})
- func D(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Distinct(args ...interface{}) bool
- func Dye(highlight int, color string, args ...interface{}) string
- func E(args ...interface{})
- func Err(args ...interface{}) error
- func ErrorIfNotNil(err interface{}, args ...interface{}) bool
- func ErrorIfNotSame(a, b interface{}, args ...interface{}) bool
- func ErrorIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
- func Errorf(format string, args ...interface{})
- func F(args ...interface{})
- func FatalIf(b bool, args ...interface{}) bool
- func FatalIfNotNil(err interface{}, args ...interface{}) bool
- func FatalIfNotSame(a, b interface{}, args ...interface{}) bool
- func FatalIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
- func Fatalf(format string, args ...interface{})
- func Green(args ...interface{})
- func Highlight(color string, args ...interface{})
- func I(args ...interface{})
- func If(b bool, args ...interface{}) bool
- func IfFalse(b bool, args ...interface{}) bool
- func IfSame(d, b interface{}, args ...interface{}) bool
- func Infof(format string, args ...interface{})
- func Inline(args ...interface{})
- func IpList() []string
- func Magenta(args ...interface{})
- func NotNil(err interface{}, args ...interface{}) bool
- func NotSame(a, b interface{}, args ...interface{}) bool
- func P(args ...interface{})
- func PanicIf(b bool, args ...interface{}) bool
- func PanicIfFalse(b bool, args ...interface{}) bool
- func PanicIfNotNil(err interface{}, args ...interface{}) bool
- func PanicIfNotSame(a, b interface{}, args ...interface{}) bool
- func PanicIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
- func Panicf(format string, args ...interface{})
- func ParseFloat64(a interface{}) (f float64, err error)
- func Red(args ...interface{})
- func ReplaceBool(old string) (str string)
- func Same(a, b interface{}) bool
- func SetLevel(level string)
- func SetOut(out io.Writer)
- func Sprint(args ...interface{}) string
- func Table[T any](arr []T, args ...any)
- func ToFloat64(a interface{}) float64
- func Uniform(args ...interface{}) bool
- func ValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
- func W(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Yellow(args ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) SetOut(out io.Writer)
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is the default logger Log = NewLogger() )
Functions ¶
func AppendIfNotNil ¶ added in v0.2.8
func ConcatWith ¶
func ErrorIfNotNil ¶ added in v0.2.8
func ErrorIfNotNil(err interface{}, args ...interface{}) bool
func ErrorIfNotSame ¶ added in v0.2.8
func ErrorIfNotSame(a, b interface{}, args ...interface{}) bool
func ErrorIfValueOrTypeNotEqual ¶ added in v0.2.8
func ErrorIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
func FatalIfNotNil ¶ added in v0.2.8
func FatalIfNotNil(err interface{}, args ...interface{}) bool
func FatalIfNotSame ¶ added in v0.2.8
func FatalIfNotSame(a, b interface{}, args ...interface{}) bool
func FatalIfValueOrTypeNotEqual ¶ added in v0.2.8
func FatalIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
func PanicIfFalse ¶ added in v0.1.4
func PanicIfNotNil ¶ added in v0.2.8
func PanicIfNotNil(err interface{}, args ...interface{}) bool
func PanicIfNotSame ¶ added in v0.2.8
func PanicIfNotSame(a, b interface{}, args ...interface{}) bool
func PanicIfValueOrTypeNotEqual ¶ added in v0.2.8
func PanicIfValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
func ParseFloat64 ¶ added in v0.2.8
func ReplaceBool ¶ added in v0.4.6
func ValueOrTypeNotEqual ¶ added in v0.2.8
func ValueOrTypeNotEqual(a, b interface{}, args ...interface{}) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.