MCPcopy Create free account
hub / github.com/GoTurkiye/training / Set

Method Set

202-cli/flag101/subcommand.go:18–21  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

16}
17
18func (s *stringList) Set(value string) error {
19 *s = strings.Split(value, ",")
20 return nil
21}
22
23func main() {
24 subOne := flag.NewFlagSet("one", flag.ExitOnError)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected