MCPcopy Create free account
hub / github.com/syncthing/syncthing / stringSetFromStrings

Function stringSetFromStrings

script/authors.go:262–268  ·  view source on GitHub ↗
(ss []string)

Source from the content-addressed store, hash-verified

260type stringSet map[string]struct{}
261
262func stringSetFromStrings(ss []string) stringSet {
263 s := make(stringSet)
264 for _, e := range ss {
265 s.add(e)
266 }
267 return s
268}
269
270func (s stringSet) add(e string) {
271 s[e] = struct{}{}

Callers 1

authors.goFile · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected