MCPcopy Create free account
hub / github.com/cloudwan/gohan / String

Method String

extension/goext/types.go:99–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (m Maybe) String() string {
100 switch m.MaybeState {
101 case MaybeNull:
102 return "<null>"
103 case MaybeUndefined:
104 return "<undefined>"
105 case MaybeValue:
106 return "<value>"
107 default:
108 panic(errors.Errorf("unknown state: %d", m.MaybeState))
109 }
110}
111
112// MaybeString represents 3-valued string
113type MaybeString struct {

Callers 6

StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
NewErrorFunction · 0.45
error_test.goFile · 0.45

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected