Documentation
¶
Index ¶
- Variables
- func Abbr(s string, maxLen int, ellipse string) string
- func ConvertTimeLayout(layout string) string
- func Esc(s string) string
- func FormatTime(d time.Time, layout string) string
- func JSONCompact(data interface{}) string
- func JSONCompactE(data interface{}) (string, error)
- func ParseTime(d string, layout string) (time.Time, error)
- func PickFirst(s string, _ interface{}) string
- func StripAny(s, chars string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Hostname = hostname() // nolint
Hostname stores hostname.
Functions ¶
func ConvertTimeLayout ¶
ConvertTimeLayout converts date time format in java style to go style.
func JSONCompact ¶
func JSONCompact(data interface{}) string
JSONCompact compact the JSON encoding of data silently.
func JSONCompactE ¶
JSONCompactE compact the JSON encoding of data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.