MCPcopy Create free account
hub / github.com/pace/bricks / Set

Method Set

cmd/pb/main.go:122–130  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

120}
121
122func (e *errorDefinitionsOutputFlag) Set(v string) error {
123 switch v {
124 case "go", "md":
125 *e = errorDefinitionsOutputFlag(v)
126 return nil
127 default:
128 return errors.New(`must be "go" or "md"`)
129 }
130}
131
132func (e *errorDefinitionsOutputFlag) Type() string {
133 return "errorDefinitionsOutputFlag"

Callers 15

mainFunction · 0.80
OKMethod · 0.80
RequestIDHandlerFunction · 0.80
RequestIDHandlerFunction · 0.80
livenessFunction · 0.80
TestHandlerReadinessFunction · 0.80
JSONHealthHandlerFunction · 0.80
writeResultFunction · 0.80
unmarshalNodeFunction · 0.80
assignFunction · 0.80
assignValueFunction · 0.80
visitModelNodeFunction · 0.80

Calls 1

Tested by 15

TestHandlerReadinessFunction · 0.64
TestErrorMiddlewareFunction · 0.64
TestErrorReportingFunction · 0.64
TestHandlerFunction · 0.64
TestCreatePolicyHandlerFunction · 0.64
OKMethod · 0.64
OKMethod · 0.64
OKMethod · 0.64
OKMethod · 0.64