package
0.0.0-20230219145106-539562847177
Repository: https://github.com/pthethanh/tiny.git
Documentation: pkg.go.dev
# Functions
Coalesce return first meaningful value (isTrue).
Default return default value if the given value is not meaningful (not isTrue).
EqualAny return true if v equal to one of the values.
FileSizeFormat return human readable string of file size.
No description provided by the author
FormatTime format the given date
Date can be a `time.Time` or an `int, int32, int64`.
FuncMap return all func map.
GeneralFuncMap return general func map.
Has check whether all the values exist in the collection.
HasAny check whether one of the value exist in the collection.
IsEmpty report whether the value not holding meaningful value.
Join join the string representation of the values together.
Map return a map of string -> interface from provided key/value pairs.
Repeat repeats the string representation of value n times.
No description provided by the author
StringFuncMap return string func map.
No description provided by the author
UUID return a UUID.
YesNo returns the first value if the last value has meaningful value/isTrue, otherwise returns the second value.