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

Method String

202-cli/flag101/subcommand.go:14–16  ·  view source on GitHub ↗

Implement the flag.Value interface

()

Source from the content-addressed store, hash-verified

12
13// Implement the flag.Value interface
14func (s *stringList) String() string {
15 return fmt.Sprintf("%v", *s)
16}
17
18func (s *stringList) Set(value string) error {
19 *s = strings.Split(value, ",")

Callers 2

mainFunction · 0.95
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected