MCPcopy Create free account
hub / github.com/cli/cli / String

Method String

pkg/option/option.go:59–65  ·  view source on GitHub ↗

String implements the [fmt.Stringer] interface.

()

Source from the content-addressed store, hash-verified

57
58// String implements the [fmt.Stringer] interface.
59func (o Option[T]) String() string {
60 if o.present {
61 return fmt.Sprintf("Some(%v)", o.value)
62 }
63
64 return "None"
65}
66
67var _ fmt.Stringer = Option[struct{}]{}
68

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected