package
module
Version:
v0.0.0-...-3326c39
Opens a new window with list of versions in this module.
Published: Mar 4, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
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()
Documentation
¶
GetUID generates optimized UUID version 1 ID.
Logger settings.
NewLogger create a new logger.
func (l *Logger) Println(v interface{})
Println print log information.
SetPrefix set log information prefix.
SetUTC set log time zone to UTC.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.