Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ NewStringSet
Function
NewStringSet
pkg/set/string_set.go:10–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}
9
10
func
NewStringSet() *stringSet {
11
s := &stringSet{}
12
s.m = make(
map
[string]
struct
{})
13
s.v = []string{}
14
return
s
15
}
16
17
func
(s *stringSet) Add(value string) {
18
if
s.Contains(value) {
Callers
15
setupJsonFlags
Function · 0.92
Resolver
Method · 0.92
refreshRun
Function · 0.92
handleError
Function · 0.92
viewRun
Function · 0.92
FindIssueOrPR
Function · 0.92
createRun
Function · 0.92
editRun
Function · 0.92
addAuthError
Method · 0.92
runDownload
Function · 0.92
Find
Method · 0.92
findForRefs
Function · 0.92
Calls
no outgoing calls
Tested by
2
Test_StringSlice_ToSlice
Function · 0.68
Test_StringSlice_Remove
Function · 0.68