Documentation
¶
Index ¶
- func ArrayToString(arr []string) string
- func Base64Encode(braw []byte) []byte
- func BytesToString(b []byte) string
- func CheckErrs(err error) bool
- func Cidr2IPs(cidr string) []string
- func Contains(stringA, stringB string) bool
- func CvtLines(s string) []string
- func DecodeBase64(i string) ([]byte, error)
- func DecodeHex(i string) ([]byte, error)
- func Difference(slice1, slice2 []string) []string
- func EncodeBase64(i interface{}) string
- func Exists(path string) bool
- func FaviconHash(data []byte) int32
- func FirstToUpper(str string) string
- func FormatTarget(target string) (targets []string)
- func Hostname(target string) string
- func In(target string, strs []string) bool
- func In1(target string, strs []string) bool
- func InMap(target string, strs map[string]string) bool
- func InSlice(slice []string, word string) bool
- func InsertInto(s string, interval int, sep rune) string
- func IntInSlice(i int, slice []int) bool
- func IsBlackHtml(str string) bool
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsIPv6(ip string) bool
- func IsInnerIP(ip string) bool
- func MD5(str string) string
- func MapToJson(param http.Header) string
- func MatchAnyOfRegexp(regexps []string, match string) (bool, string)
- func Mmh3Hash32(raw []byte) int32
- func RandomFromChoices(n int, choices string) string
- func RandomLetterNumbers(n int) string
- func RandomLetters(n int) string
- func RandomLowLetterNumber(n int) string
- func RandomNumber(n int, m int) int
- func RandomString(n int) string
- func RandomUpper(s string) string
- func ReadFileAsLine(path string) ([]string, error)
- func RemoveDuplicateElement(strs []string) []string
- func ReverseString(s string) string
- func StringToBytes(s string) []byte
- func StructToJsonString(item interface{}) string
- func StructureIps(ipsTmp []string, num int) (ips []string)
- func ToStringSlice(actual interface{}) ([]string, error)
- func ToUpper(a []string) []string
- func Trim(s string) string
- func UUID() string
- func WriteFile(path string, data []byte) error
- type UserPass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶
func BytesToString ¶
func DecodeBase64 ¶ added in v0.3.1
func Difference ¶
func EncodeBase64 ¶ added in v0.3.1
func EncodeBase64(i interface{}) string
func FaviconHash ¶
func FormatTarget ¶
func IntInSlice ¶
func IsBlackHtml ¶ added in v0.3.1
func RandomFromChoices ¶ added in v0.3.1
RandomFromChoices 从choices里面随机获取
func RandomLetterNumbers ¶ added in v0.3.1
RandomLetterNumbers 随机大小写字母和数字
func RandomLowLetterNumber ¶ added in v0.3.1
RandomLowLetterNumber 随机小写字母和数字
func RandomUpper ¶
func ReadFileAsLine ¶
ReadFileAsLine 读取文件并返回一个字符串切片
func RemoveDuplicateElement ¶ added in v0.3.1
RemoveDuplicateElement 数组去重
func StringToBytes ¶
func StructToJsonString ¶
func StructToJsonString(item interface{}) string
StructToJsonString 将结构体输出位 json 字符
func StructureIps ¶
func ToStringSlice ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.