MCPcopy
hub / github.com/spf13/pflag / Unwrap

Method Unwrap

errors.go:120–122  ·  view source on GitHub ↗

Unwrap implements errors.Unwrap.

()

Source from the content-addressed store, hash-verified

118
119// Unwrap implements errors.Unwrap.
120func (e *InvalidValueError) Unwrap() error {
121 return e.cause
122}
123
124// GetFlag returns the flag for which the error occurred.
125func (e *InvalidValueError) GetFlag() *Flag {

Callers 1

TestInvalidValueErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestInvalidValueErrorFunction · 0.76