Documentation ¶ Index ¶ func In(target string, strs []string) bool func LinesInFile(fileName string) ([]string, error) func MergeMap(map1, map2 map[string]resolve.HostEntry) map[string]resolve.HostEntry func RandomStr(n int) string func RemoveDuplicateElement(strs []string) []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func In ¶ added in v0.0.5 func In(target string, strs []string) bool In 判断一个字符串是否在另一个字符数组里面,存在返回true func LinesInFile ¶ func LinesInFile(fileName string) ([]string, error) LinesInFile 读取文件 返回每行的数组 func MergeMap ¶ func MergeMap(map1, map2 map[string]resolve.HostEntry) map[string]resolve.HostEntry func RandomStr ¶ func RandomStr(n int) string func RemoveDuplicateElement ¶ added in v0.0.5 func RemoveDuplicateElement(strs []string) []string RemoveDuplicateElement 数组去重 Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.