util

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomainIp

func GetDomainIp(domain string) string

func In

func In(target string, strs []string) bool

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

func InInt

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

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

func IsInnerIP

func IsInnerIP(ip string) bool

IsInnerIP 判断是否为内网IP

func LinesInFile

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

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

func MergeIpPortMap

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

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