MCPcopy
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
17func (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
25func (s *stringSet) AddValues(values []string) {
26 for _, v := range values {

Callers 1

AddValuesMethod · 0.95

Implementers 1

stringSetpkg/set/string_set.go

Calls 1

ContainsMethod · 0.95

Tested by

no test coverage detected