util

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL