Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ Add
Method
Add
pkg/set/string_set.go:17–23 ·
view source on GitHub ↗
(value string)
Source
from the content-addressed store, hash-verified
15
}
16
17
func
(s *stringSet) Add(value string) {
18
if
s.Contains(value) {
19
return
20
}
21
s.m[value] = exists
22
s.v = append(s.v, value)
23
}
24
25
func
(s *stringSet) AddValues(values []string) {
26
for
_, v :=
range
values {
Callers
1
AddValues
Method · 0.95
Implementers
1
stringSet
pkg/set/string_set.go
Calls
1
Contains
Method · 0.95
Tested by
no test coverage detected