MCPcopy
hub / github.com/pingc0y/URLFinder / UniqueArr

Function UniqueArr

util/utils.go:258–268  ·  view source on GitHub ↗

数组去重

(arr []string)

Source from the content-addressed store, hash-verified

256
257// 数组去重
258func UniqueArr(arr []string) []string {
259 newArr := make([]string, 0)
260 tempArr := make(map[string]bool, len(newArr))
261 for _, v := range arr {
262 if tempArr[v] == false {
263 tempArr[v] = true
264 newArr = append(newArr, v)
265 }
266 }
267 return newArr
268}
269
270func GetDomains(lis []mode.Link) []string {
271 var urls []string

Callers 4

fuzz1Function · 0.92
JsFuzzFunction · 0.92
GetDomainsFunction · 0.85
PathExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected