Documentation ¶
Index ¶
- func CalcEveryPageNumber(count, size, index int) (start, end int)
- func ConvertBasicType(value string, objType reflect.Type, objValue reflect.Value) error
- func CurrentFuncName() string
- func FindStrInSlice(list []string, str string) int
- func GetFuncName(fn interface{}) string
- func GetLocalHostIP() string
- func GetMD5(data string) string
- func GetRootDomainName(domainName string) string
- func GetRootDomainNameByRegexp(domainName string) string
- func GetWildcardDomain(domainName string) string
- func IsLetterOrNumber(str string) bool
- func IsValidDomainName(domainName string) bool
- func IsWildcardDomain(domainName string) bool
- func JSONConvert(from any, to any) error
- func JSONDump(val any) string
- func LowerFirstChar(letter string) string
- func ParentFuncName() string
- func ParentFuncShortName() string
- func ParsePages(pageSize, pageIndex int) (int, int)
- func ParsePagesFroLarge(pageSize, pageIndex int) (int, int)
- func ParsePagesWithLimit(pageSize, pageIndex, pageSizeLimit int) (int, int)
- func ParseRange(count, pageSize, pageIndex int) (int, int)
- func ParseRangeForLarge(count, pageSize, pageIndex int) (int, int)
- func ParseRangeWithLimit(count, pageSize, pageIndex, pageSizeLimit int) (int, int)
- func RemoveDuplicateStringSlice(tmp []string) []string
- func RemoveStringSlice(s []string, removed []string) []string
- func ReverseStr(str string) string
- func SafeGo(run func())
- func SplitDomainBySpecifyLevel(domainName string, level int) ([]string, error)
- func SplitFuncName(fn string, separator ...rune) string
- func Stringify(v ...any) string
- func UnionStringSlice(s1, s2 []string) []string
- func UpperFirstChar(letter string) string
- func ValidIPAddr(ip string) bool
- func ValidJSON(str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcEveryPageNumber ¶
CalcEveryPageNumber returns a page start, end numbers by count, size, index.
func ConvertBasicType ¶
ConvertBasicType 根据obj的反射类型、值,将value设置给obj。
func CurrentFuncName ¶
func CurrentFuncName() string
func FindStrInSlice ¶
func GetFuncName ¶
func GetFuncName(fn interface{}) string
func GetRootDomainName ¶
GetRootDomainName 获取域名的根域名,如果pulicsuffix获取没有出错,返回eTLD,否则使用正则获取
func GetRootDomainNameByRegexp ¶
GetRootDomainNameByRegexp 使用正则获取域名的要域名
func GetWildcardDomain ¶
func IsLetterOrNumber ¶
func IsValidDomainName ¶
func IsWildcardDomain ¶
func JSONConvert ¶
JSONConvert uses json Marshal, Unmarshal to copy.
func LowerFirstChar ¶
func ParentFuncName ¶
func ParentFuncName() string
func ParentFuncShortName ¶
func ParentFuncShortName() string
func ParsePages ¶
ParsePages returns page size [1,500] and index [1,]
func ParsePagesFroLarge ¶
ParsePagesFroLarge returns page size [1,5000] and index [1,]
func ParsePagesWithLimit ¶
ParsePagesWithLimit returns page size [1,pageSizeLimit] and index [1,]
func ParseRange ¶
ParseRange returns a page start, end numbers by count, size, index.
func ParseRangeForLarge ¶
ParseRangeForLarge returns a page start, end numbers by count, size, index.
func ParseRangeWithLimit ¶
ParseRangeWithLimit returns a page start, end numbers by count, size, index.
func RemoveStringSlice ¶
func ReverseStr ¶
func SplitDomainBySpecifyLevel ¶
SplitDomainBySpecifyLevel 将域名按指定层级拆分,形成泛域名+域名集合
func SplitFuncName ¶
func UnionStringSlice ¶
func UpperFirstChar ¶
Types ¶
This section is empty.