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

Function MergeArray

util/utils.go:27–34  ·  view source on GitHub ↗

MergeArray 合并数组

(dest []mode.Link, src []mode.Link)

Source from the content-addressed store, hash-verified

25
26// MergeArray 合并数组
27func MergeArray(dest []mode.Link, src []mode.Link) (result []mode.Link) {
28 result = make([]mode.Link, len(dest)+len(src))
29 //将第一个数组传入result
30 copy(result, dest)
31 //将第二个数组接在尾部,也就是 len(dest):
32 copy(result[len(dest):], src)
33 return
34}
35
36// 对结果进行状态码排序
37func SelectSort(arr []mode.Link) []mode.Link {

Callers 4

OutFileCsvFunction · 0.92
OutFileJsonFunction · 0.92
OutFileHtmlFunction · 0.92
PrintFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected