Documentation ¶
Index ¶
- Variables
- func Body() string
- func Hex(title string, msg any)
- func HexDump(title string, msg any)
- func Info(title string, msg ...any)
- func Json(title string, msg ...any)
- func MarshalJson(title string, msg any)
- func Msg() string
- func SetDebug(debug bool)
- func Struct(msg any)
- func Success(title string, msg ...any)
- func Trace(title string, msg ...any)
- func Warning(title string, msg ...any)
- type Interface
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New()
Functions ¶
func MarshalJson ¶
Types ¶
type Interface ¶
type Interface interface { HexDump(title string, msg any) //hex buf todo support fn return []byte Hex(title string, msg any) //hex value Info(title string, msg ...any) //info Trace(title string, msg ...any) //跟踪 Warning(title string, msg ...any) //警告 MarshalJson(title string, msg any) //pb json todo rename Json(title string, msg ...any) //pb json todo rename Success(title string, msg ...any) //成功 Struct(msg any) //结构体 todo indent ,add title Body() string Msg() string SetDebug(debug bool) }
Click to show internal directories.
Click to hide internal directories.