Helper function to remove duplicates from a slice
(input []string)
| 2003 | |
| 2004 | // Helper function to remove duplicates from a slice |
| 2005 | func removeDuplicates(input []string) []string { |
| 2006 | uniqueMap := make(map[string]bool) |
| 2007 | var result []string |
| 2008 | for _, item := range input { |
| 2009 | if _, exists := uniqueMap[item]; !exists { |
| 2010 | uniqueMap[item] = true |
| 2011 | result = append(result, item) |
| 2012 | } |
| 2013 | } |
| 2014 | return result |
| 2015 | } |
| 2016 | |
| 2017 | // requestEndPaths makes HTTP requests using a list of custom end paths from a file and prints the results. |
| 2018 | func requestEndPaths(options RequestOptions) { |
no outgoing calls
no test coverage detected