MCPcopy Create free account
hub / github.com/Synzack/ldapper / GetArrayDifference

Function GetArrayDifference

Globals/Globals.go:115–129  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

113}
114
115func GetArrayDifference(a, b []string) (diff []string) {
116 m := make(map[string]bool)
117
118 for _, item := range b {
119 m[item] = true
120 }
121
122 for _, item := range a {
123 if _, ok := m[item]; !ok {
124 diff = append(diff, item)
125 }
126 }
127
128 return
129}
130
131func GetMachineHostname(dc string, proxyDial func(string, string) (net.Conn, error)) string {
132 var conn net.Conn

Callers 1

ReturnNestedGroupQueryFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected