MCPcopy
hub / github.com/alecthomas/kong / String

Method String

tag.go:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (t *Tag) String() string {
63 out := []string{}
64 for key, list := range t.items {
65 for _, value := range list {
66 out = append(out, fmt.Sprintf("%s:%q", key, value))
67 }
68 }
69 return strings.Join(out, " ")
70}
71
72type tagChars struct {
73 sep, quote, assign rune

Callers 15

TestCustomWrapFunction · 0.45
TestVersionFlagFunction · 0.45
TestURLMapperFunction · 0.45
TestMapperPlaceHolderFunction · 0.45
TestSignatureCommandHelpFunction · 0.45
TestHelpOptionalArgsFunction · 0.45
TestHelpFunction · 0.45
TestFlagsLastFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestCustomWrapFunction · 0.36
TestVersionFlagFunction · 0.36
TestURLMapperFunction · 0.36
TestMapperPlaceHolderFunction · 0.36
TestSignatureCommandHelpFunction · 0.36
TestHelpOptionalArgsFunction · 0.36
TestHelpFunction · 0.36
TestFlagsLastFunction · 0.36