Documentation ¶
Index ¶
- func EnsureLeft(str, prefix string) string
- func EnsureRight(str, suffix string) string
- func GetAgeByBirthday(str string) int
- func GetBirthdayByIdcardNo(str string) string
- func GetFileExt(str string) string
- func GetRandomString(length int, randomStringType ...int) string
- func HandleTextareaInput(str string) string
- func IsAlnum(str string) bool
- func IsDate(str string) bool
- func IsDatetime(str string) bool
- func IsEmail(str string) bool
- func IsFloat(str string) bool
- func IsIdcard(str string) bool
- func IsInt(str string) bool
- func IsLetteric(str string) bool
- func IsNatiioalPhoneNumber(str string) bool
- func IsNationalMobileNumber(str string) bool
- func IsNumeric(str string) bool
- func IsPasswordTooSimple(str string) bool
- func IsTime(str string) bool
- func Lcfirst(str string) string
- func Lcwords(str, joinBy string, delimiters ...string) string
- func Mask(str string, prefixLen, suffixLen int) string
- func MaskEmail(str string) string
- func PadEnd(str string, length int, padChars ...string) string
- func PadStart(str string, length int, padChars ...string) string
- func ReadFromFile(fpath string) string
- func RegexMatch(str, pattern string) bool
- func RegexReplace(str, pattern, repl string) string
- func RegexpCatch(str, regex string) []string
- func RegexpCatchAll(str, regex string) [][]string
- func RemoveSqlSpecialChars(str string) string
- func ReplaceWithRegexp(str, pattern, repl string) string
- func SplitByChars(str string, chars ...rune) []string
- func SplitWithRegexp(str, pattern string) []string
- func StripTags(str string) string
- func SubstringAfter(str, delimiter string, last ...bool) string
- func SubstringAfterLast(str, delimiter string) string
- func SubstringBefore(str, delimiter string, last ...bool) string
- func SubstringBeforeLast(str, delimiter string) string
- func ThousandSep(str string) string
- func ToCharArray(str string) []string
- func ToDataSize(str string) int64
- func ToDuration(str string) time.Duration
- func ToGb18030(str string) string
- func ToShortDate(str string) time.Time
- func ToTime(str string) time.Time
- func ToTimestamp(str string) int64
- func Trim(str string, chars ...rune) string
- func TrimEnd(str string, chars ...rune) string
- func TrimStart(str string, chars ...rune) string
- func Ucfirst(str string) string
- func Ucwords(str, joinBy string, delimiters ...string) string
- func UnescapeUnicode(arg0 interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureLeft ¶
func EnsureRight ¶
func GetAgeByBirthday ¶
func GetBirthdayByIdcardNo ¶
func GetFileExt ¶
func GetRandomString ¶
func HandleTextareaInput ¶
func IsDatetime ¶
func IsLetteric ¶
func IsNatiioalPhoneNumber ¶
func IsNationalMobileNumber ¶
func IsPasswordTooSimple ¶
func ReadFromFile ¶
func RegexMatch ¶
func RegexReplace ¶
func RegexpCatch ¶
func RegexpCatchAll ¶
func RemoveSqlSpecialChars ¶
func ReplaceWithRegexp ¶
func SplitByChars ¶
func SplitWithRegexp ¶
func SubstringAfter ¶
func SubstringAfterLast ¶
func SubstringBefore ¶
func SubstringBeforeLast ¶
func ThousandSep ¶
func ToCharArray ¶
func ToDataSize ¶
func ToDuration ¶
func ToShortDate ¶
func ToTimestamp ¶
func UnescapeUnicode ¶
func UnescapeUnicode(arg0 interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.