(a, b []string)
| 113 | } |
| 114 | |
| 115 | func 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 | |
| 131 | func GetMachineHostname(dc string, proxyDial func(string, string) (net.Conn, error)) string { |
| 132 | var conn net.Conn |
no outgoing calls
no test coverage detected