Documentation ¶
Overview ¶
Package flag contains flag unmarshalers for the github.com/jessevdk/go-flags parsing library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyExt = errors.New("extension may not be empty")
ErrEmptyExt is returned when the user provides an empty extension.
Functions ¶
This section is empty.
Types ¶
type Ext ¶
type Ext string
Ext represents a file extension being passed in by a user on the command-line.
func (*Ext) UnmarshalFlag ¶
UnmarshalFlag parses the raw string from the command line into a usable object. It normalizes the extension to contain a leading dot. An error will be returned if an empty extension is passed.
Click to show internal directories.
Click to hide internal directories.