Documentation ¶
Overview ¶
Package util provides some helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidBits = Error("无效的位数据")
)
Errors.
View Source
var ( // Root is the root dir of the executable that started the current process. Root string )
Functions ¶
Types ¶
type Bits ¶
type Bits uint64
Bits represents a bits value.
func (Bits) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Bits) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents the cache.
type Date ¶
Date represents a date.
func (Date) MarshalText ¶
MarshalText implements encoding.TextMarshaler interface.
func (*Date) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler interface.
type DateTime ¶
DateTime represents a date time.
func (DateTime) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*DateTime) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.