util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 7 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 InInt added in v0.0.6

func InInt(target int, strs []int) bool

InInt 判断一个字符串是否在另一个字符数组里面,存在返回true

func IsInnerIP added in v0.2.0

func IsInnerIP(ip string) bool

IsInnerIP 判断是否为内网IP

func LinesInFile

func LinesInFile(fileName string) ([]string, error)

LinesInFile 读取文件 返回每行的数组

func MergeIpPortMap added in v0.0.6

func MergeIpPortMap(map1, map2 map[string][]int) map[string][]int

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