MCPcopy
hub / github.com/urfave/cli / String

Method String

flag_slice_base.go:84–91  ·  flag_slice_base.go::VC].String

String returns a readable representation of this value (for usage defaults)

()

Source from the content-addressed store, hash-verified

82
83// String returns a readable representation of this value (for usage defaults)
84func (i *SliceBase[T, C, VC]) String() string {
85 var defaultVals []string
86 var v VC
87 for _, s := range *i.slice {
88 defaultVals = append(defaultVals, v.ToString(s))
89 }
90 return strings.Join(defaultVals, ", ")
91}
92
93// Serialize allows SliceBase to fulfill Serializer
94func (i *SliceBase[T, C, VC]) Serialize() string {

Callers 1

ToStringMethod · 0.95

Calls 1

ToStringMethod · 0.65

Tested by

no test coverage detected