Documentation
¶
Overview ¶
Package opt provides a simple struct for options that can be passed in as an optional last variadic parameter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDebugOpt ¶
DefaultDebugOpt sets the default for the flag
func DefaultDryRunOpt ¶
DefaultDryRunOpt sets the default for the flag
Types ¶
type Opt ¶
type Opt struct {
Key string // name of the option
Val interface{} // value of the option
}
Opt provides a mechanism for passing in optional options to functions.
func NewDebugOpt ¶
NewDebugOpt creates the new option with the given value
func NewDryRunOpt ¶
NewDryRunOpt creates the new option with the given value
Click to show internal directories.
Click to hide internal directories.