README ¶ Go Util Installation go get -u -v gitee.com/symowl/goutil Usage Logger import "gitee.com/symowl/goutil" log := goutil.NewLogger() log.SetProfix("PREFIX") log.SetUTC() log.Println("MESSAGE") UID import "gitee.com/symowl/goutil" uid := goutil.GetUID() Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GetUID() string type Logger func NewLogger() *Logger func (l *Logger) Println(v interface{}) func (l *Logger) SetPrefix(prefix string) func (l *Logger) SetUTC() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetUID ¶ func GetUID() string GetUID generates optimized UUID version 1 ID. Types ¶ type Logger ¶ type Logger struct { Prefix string UTC bool } Logger settings. func NewLogger ¶ func NewLogger() *Logger NewLogger create a new logger. func (*Logger) Println ¶ func (l *Logger) Println(v interface{}) Println print log information. func (*Logger) SetPrefix ¶ func (l *Logger) SetPrefix(prefix string) SetPrefix set log information prefix. func (*Logger) SetUTC ¶ func (l *Logger) SetUTC() SetUTC set log time zone to UTC. Source Files ¶ View all Source files log.gouid.go Click to show internal directories. Click to hide internal directories.