MCPcopy
hub / github.com/geektutu/high-performance-go / main

Function main

charpter-2/code/hpg-empty-struct/main_set.go:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func main() {
21 s := make(Set)
22 s.Add("Tom")
23 s.Add("Sam")
24 fmt.Println(s.Has("Tom"))
25 fmt.Println(s.Has("Jack"))
26}

Callers

nothing calls this directly

Calls 2

AddMethod · 0.80
HasMethod · 0.80

Tested by

no test coverage detected