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

Method String

flag_map_impl.go:94–101  ·  flag_map_impl.go::VC].String

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

()

Source from the content-addressed store, hash-verified

92
93// String returns a readable representation of this value (for usage defaults)
94func (i *MapBase[T, C, VC]) String() string {
95 v := i.Value()
96 var t T
97 if reflect.TypeOf(t).Kind() == reflect.String {
98 return fmt.Sprintf("%v", v)
99 }
100 return fmt.Sprintf("%T{%s}", v, i.ToString(v))
101}
102
103// Serialize allows MapBase to fulfill Serializer
104func (i *MapBase[T, C, VC]) Serialize() string {

Callers

nothing calls this directly

Calls 2

ValueMethod · 0.95
ToStringMethod · 0.95

Tested by

no test coverage detected