Documentation ¶
Index ¶
- func Date() (v string)
- func Format(t *time.Time) (v string)
- func If(b bool, t, f interface{}) interface{}
- func JsonDecode(s string, out interface{}) error
- func JsonEncode(v interface{}) string
- func Millisecond() int64
- func StrToTime(s string) *time.Time
- func Time() *time.Time
- type CustomerFormatter
- type NumberDouble
- type NumberInt
- type NumberLong
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomerFormatter ¶
type CustomerFormatter struct {
Prefix string
}
type NumberDouble ¶
type NumberDouble float64
func (*NumberDouble) MarshalJSON ¶
func (n *NumberDouble) MarshalJSON() ([]byte, error)
func (*NumberDouble) UnmarshalJSON ¶
func (n *NumberDouble) UnmarshalJSON(data []byte) (err error)
type NumberInt ¶
type NumberInt int
func (*NumberInt) MarshalJSON ¶
func (*NumberInt) UnmarshalJSON ¶
type NumberLong ¶
type NumberLong int64
func (*NumberLong) MarshalJSON ¶
func (n *NumberLong) MarshalJSON() ([]byte, error)
func (*NumberLong) UnmarshalJSON ¶
func (n *NumberLong) UnmarshalJSON(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.