(scope string)
| 16 | ) |
| 17 | |
| 18 | func NormalizeScope(scope string) string { |
| 19 | switch strings.ToLower(scope) { |
| 20 | case "ip": |
| 21 | return Ip |
| 22 | case "range": |
| 23 | return Range |
| 24 | case "as": |
| 25 | return AS |
| 26 | case "country": |
| 27 | return Country |
| 28 | default: |
| 29 | return scope |
| 30 | } |
| 31 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…