Documentation ¶
Index ¶
- func Abs(n int64) int64
- func Base64Decode(content string) string
- func Base64Encode(content string) string
- func CleanNewline(s string) string
- func CleanSpecialSymbols(s string) string
- func ClearHTML(s string) string
- func ClearSpace(s string) string
- func ClearTGLink(link string) string
- func CompleteBase64URLSafe(s string) string
- func Config(key string) string
- func DetectGenderFromDict(name string) (string, error)
- func DetermineGender(name string) string
- func EscapeHTML(content string) string
- func FindSubstr(content string, params ...interface{}) string
- func GetBotID(token string) int64
- func GetBotToken(content string) (string, bool)
- func GetLinks(s string) []string
- func HMAC(h func() hash.Hash, payload []byte, secret []byte) []byte
- func HiddenBotToken(s string) string
- func IsBotToken(token string) bool
- func IsCommand(text string) bool
- func IsEnglish(str string) bool
- func IsObjectID(v string) bool
- func IsURL(token string) bool
- func MD5(text string) string
- func NiceNumber(num interface{}) string
- func Number2Icon(number int) string
- func RandDoubleAverage(count int64, min float64, max float64) float64
- func RandFloatRange(min float64, max float64) float64
- func RandRange(min int, max int) int
- func RandString(n int) string
- func RunesToHexKey(runes []rune) string
- func Split2Tags(text string) []string
- func StrLen(text string) int
- func StrLimit(text string, length int) string
- func StringInArray(value string, lists []string) bool
- func StringToHexKey(input string) string
- func ToFloat64(v interface{}) float64
- func ToInt64(v interface{}) int64
- func ToObjectID(v interface{}) primitive.ObjectID
- func ToString(v interface{}) string
- func TrimLastZero(f float64, p ...string) string
- func UTF8DecodeRune(text string) []string
- type JSONBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteBase64URLSafe ¶ added in v0.1.2
CompleteBase64URLSafe adjusts a Base64 URL-safe encoded string by replacing '-' with '+', '_' with '/', and adding missing padding '=' characters
func DetectGenderFromDict ¶
DetectGenderFromDict
func GetBotToken ¶
GetBotToken is get bot token for content
func RandDoubleAverage ¶
RandDoubleAverage 二倍均值算法生成随机数
func RunesToHexKey ¶
RunesToHexKey - Convert a slice of runes to hex string representation of their Unicode Code Point value
func StringInArray ¶
StringInArray is value in string array
func StringToHexKey ¶
StringToHexKey - Convert a string to hex string representation of their Unicode Code Point value
func ToObjectID ¶
ToObjectID is interface to ObjectID
Types ¶
Click to show internal directories.
Click to hide internal directories.