MCPcopy 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
10func NewStringSet() *stringSet {
11 s := &stringSet{}
12 s.m = make(map[string]struct{})
13 s.v = []string{}
14 return s
15}
16
17func (s *stringSet) Add(value string) {
18 if s.Contains(value) {

Callers 15

setupJsonFlagsFunction · 0.92
ResolverMethod · 0.92
refreshRunFunction · 0.92
handleErrorFunction · 0.92
viewRunFunction · 0.92
FindIssueOrPRFunction · 0.92
createRunFunction · 0.92
editRunFunction · 0.92
addAuthErrorMethod · 0.92
runDownloadFunction · 0.92
FindMethod · 0.92
findForRefsFunction · 0.92

Calls

no outgoing calls

Tested by 2

Test_StringSlice_ToSliceFunction · 0.68
Test_StringSlice_RemoveFunction · 0.68