Documentation ¶
Index ¶
- func Decode(raw []byte) ([]byte, error)
- func DecodeWithDesc(raw []byte) (desc string, payload []byte, err error)
- func Encode(payload []byte) []byte
- func EncodeWithDesc(raw []byte, desc string, delim Delim) ([]byte, error)
- func FormatTime(ts time.Time) string
- func ParseTime(ts string) (time.Time, error)
- type Delim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWithDesc ¶
DecodeWithDesc decode and return desc
func EncodeWithDesc ¶
EncodeWithDesc add some desc into payload
func FormatTime ¶
FormatTime encode time in minami58, mill-seconds will be ignored.
Types ¶
Click to show internal directories.
Click to hide internal directories.