mylog

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

func Body

func Body() string

func Hex

func Hex(title string, msg any)

func HexDump

func HexDump(title string, msg any)

func Info

func Info(title string, msg ...any)

func Json

func Json(title string, msg ...any)

func MarshalJson

func MarshalJson(title string, msg any)

func Msg

func Msg() string

func SetDebug

func SetDebug(debug bool)

func Struct

func Struct(msg any)

func Success

func Success(title string, msg ...any)

func Trace

func Trace(title string, msg ...any)

func Warning

func Warning(title string, msg ...any)

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)
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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