Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalOnError ¶ added in v1.11.0
func FatalOnError(err error)
FatalOnError prints error to stderr and shuts down the application.
Used when logging facility isn't initialized yet.
Does nothing if passed error is nil.
Types ¶
type StringsListValue ¶
type StringsListValue []string
StringsListValue is comma-separated list of values that implements flag.Value interface.
func NewStringsListValue ¶
func NewStringsListValue(p *[]string) *StringsListValue
NewStringsListValue returns a new StringsListValue
func (*StringsListValue) Set ¶
func (s *StringsListValue) Set(s2 string) error
Set implements flag.Value
func (StringsListValue) String ¶
func (s StringsListValue) String() string
String implements flag.Value
type TextUnmarshalerValue ¶ added in v1.11.0
type TextUnmarshalerValue struct {
// contains filtered or unexported fields
}
TextUnmarshalerValue is flag.Value adapter for values which implement encoding.TextUnmarshaler interface.
func NewTextUnmarshalerValue ¶ added in v1.11.0
func NewTextUnmarshalerValue(dest encoding.TextUnmarshaler) *TextUnmarshalerValue
func (TextUnmarshalerValue) Set ¶ added in v1.11.0
func (t TextUnmarshalerValue) Set(v string) error
Set implements flag.Value
func (TextUnmarshalerValue) String ¶ added in v1.11.0
func (t TextUnmarshalerValue) String() string
String implements flag.Value
func (*TextUnmarshalerValue) WithDefaults ¶ added in v1.11.0
func (t *TextUnmarshalerValue) WithDefaults(defaultValue string) *TextUnmarshalerValue
Click to show internal directories.
Click to hide internal directories.