MCPcopy Create free account
hub / github.com/bep/s3deploy / uniqueStrings

Function uniqueStrings

lib/cloudfront.go:235–245  ·  view source on GitHub ↗
(s []string)

Source from the content-addressed store, hash-verified

233}
234
235func uniqueStrings(s []string) []string {
236 var unique []string
237 set := map[string]any{}
238 for _, val := range s {
239 if _, ok := set[val]; !ok {
240 unique = append(unique, val)
241 set[val] = val
242 }
243 }
244 return unique
245}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected