Documentation
¶
Index ¶
- func DecodeTime(value string) (time.Time, error)
- func DecodeUnixtime(value string) (time.Time, error)
- type Bool
- type ByteSlice
- type Complex128
- type Complex64
- type Float32
- type Float64
- type Int
- type Int16
- type Int32
- type Int64
- type Int8
- type String
- type Time
- type Uint
- type Uint16
- type Uint32
- type Uint64
- type Uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTime ¶
DecodeTime parses data bytes as time.Time in UTC timezone. Supported formats of the data bytes are: 1. RFC3339Nano string, e.g. "2006-01-02T15:04:05-07:00". 2. Date string, e.g. "2006-01-02". 3. Unix timestamp, e.g. "1136239445", "1136239445.8", "1136239445.812738".
Types ¶
type ByteSlice ¶
type ByteSlice []byte
ByteSlice is a wrapper of []byte to implement Stringable. NOTE: we're using base64.StdEncoding here, not base64.URLEncoding.
func (*ByteSlice) FromString ¶
type Complex128 ¶
type Complex128 complex128
func (*Complex128) FromString ¶
func (cv *Complex128) FromString(s string) error
func (Complex128) ToString ¶
func (cv Complex128) ToString() (string, error)
type Time ¶
func (*Time) FromString ¶
Click to show internal directories.
Click to hide internal directories.