MCPcopy Index your code
hub / github.com/devploit/nomore403 / removeDuplicates

Function removeDuplicates

cmd/requester.go:2005–2015  ·  view source on GitHub ↗

Helper function to remove duplicates from a slice

(input []string)

Source from the content-addressed store, hash-verified

2003
2004// Helper function to remove duplicates from a slice
2005func 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.
2018func requestEndPaths(options RequestOptions) {

Callers 4

requestHeadersFunction · 0.85
requestDoubleEncodingFunction · 0.85
requestPathNormalizationFunction · 0.85
requestSuffixTricksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected