Documentation ¶
Index ¶
- func EndWith(str string, substr string) bool
- func MapEncode(in map[string]interface{}) string
- func Period2Suffix(period string, special1h bool) string
- func SliceEncode(s []SortPair) string
- func Strftime(t interface{}) string
- func Ternary(exp bool, a interface{}, b interface{}) interface{}
- func ToFloat(i interface{}) float64
- func ToString(i interface{}) string
- type SortPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Period2Suffix ¶
Period2Suffix *m => *min, *h => *hour, *w => *week, *d => *day, special60 如果为true 则 1h => 60min
Types ¶
Click to show internal directories.
Click to hide internal directories.