Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
20
func
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
Add
Method · 0.80
Has
Method · 0.80
Tested by
no test coverage detected