Versions in this module Expand all Collapse all v0 v0.0.2 Feb 17, 2021 v0.0.1 Feb 17, 2021 Changes in this version + const Day + const Hour + const Minute + const Month + const Week + const Year + var Rander = rand.New(rand.NewSource(time.Now().UnixNano())) + func AorB(condition bool, a, b string) string + func CompareVersion(src, toCompare string) bool + func CompressedHTML(h *template.HTML) + func CopyMap(m map[string]string) map[string]string + func EncodeMD5(value string) string + func GetCurrentTime() time.Time + func GetCurrentTimeStr() string + func GetCurrentTimeUnix() int64 + func InArray(arr []string, str string) bool + func IsDecimals(str ...string) bool + func IsEmail(str ...string) bool + func IsEngishLowCase(str ...string) bool + func IsEnglish(str ...string) bool + func IsEnglishCap(str ...string) bool + func IsID(str ...string) bool + func IsInteger(str ...string) bool + func IsJSON(str string) bool + func IsMobile(str ...string) bool + func IsPwd(str ...string) bool + func IsTelephone(str ...string) bool + func JSON(a interface{}) string + func JsonToStruct(data string, value interface{}) error + func Match(p string, s string) bool + func PackageName(v interface{}) string + func ParseBool(s string) bool + func ParseFloat32(f string) float32 + func ParseHTML(name, tmpl string, param interface{}) template.HTML + func ParseText(name, tmpl string, param interface{}) string + func ParseTime(stringTime string) time.Time + func RandNum(min, max int) int + func RandNumStr(n int) string + func RandOrd(n int) string + func RandStr(n int, letter string) string + func RandString(n int) string + func Random(strings []string) ([]string, error) + func ReplaceAll(s string, oldnew ...string) string + func ReplaceNth(s, old, new string, n int) string + func SetDefault(value, condition, def string) string + func StringToInt(e string) (int, error) + func StructToJson(value interface{}) (res string, err error) + func TimeSincePro(then time.Time, m map[string]string) string + func TimeToUnix(e time.Time) int64 + func ToLowerUnderlinedNamer(name string) string + func UnixToTime(e string) (datatime time.Time, err error) + func Uuid(length int64) string + func WeekDay(t time.Time) string + func WrapURL(u string) string