Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeParseLayout = "2006-01-02 15:04:05" FilePrefixTimeLayout = "2006-01-02_150405" )
Variables ¶
View Source
var TimeLoc, _ = time.LoadLocation("Asia/Shanghai")
Functions ¶
func Bcs ¶
Bcs converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note it may break if string and/or slice header will change in the future go versions.
func GenerateId ¶
Types ¶
type ChanMap ¶
type ChanMap[K comparable, V any] struct { Del chan K // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.