MCPcopy Create free account
hub / github.com/arklnk/ark-admin-zero / ArrayContainValue

Function ArrayContainValue

common/utils/function.go:47–55  ·  view source on GitHub ↗
(arr []uint64, search uint64)

Source from the content-addressed store, hash-verified

45}
46
47func ArrayContainValue(arr []uint64, search uint64) bool {
48 for _, v := range arr {
49 if v == search {
50 return true
51 }
52 }
53
54 return false
55}
56
57func Intersect(slice1 []uint64, slice2 []uint64) []uint64 {
58 m := make(map[uint64]uint64)

Callers 7

countUserPermMenuMethod · 0.92
UpdateSysUserMethod · 0.92
AddSysUserMethod · 0.92
roleListMethod · 0.92
UpdateSysPermMenuMethod · 0.92
UpdateSysDeptMethod · 0.92
UpdateSysRoleMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected