(strSlice []string)
| 27 | ) |
| 28 | |
| 29 | func Unique(strSlice []string) []string { |
| 30 | keys := make(map[string]bool) |
| 31 | var list []string |
| 32 | for _, entry := range strSlice { |
| 33 | if _, value := keys[entry]; !value { |
| 34 | keys[entry] = true |
| 35 | if entry != "" { |
| 36 | list = append(list, entry) |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | return list |
| 41 | } |
| 42 | |
| 43 | func ShowBanner(version string, inputLength int, myOptions *opt.Options) { |
| 44 | if !myOptions.SilentMode { |
no outgoing calls
no test coverage detected