Documentation
¶
Index ¶
- Constants
- type OptFunc
- type Options
- func (o *Options) Armor() bool
- func (o *Options) Debug() bool
- func (o *Options) GDump() bool
- func (o *Options) Integer() bool
- func (o *Options) Literal() bool
- func (o *Options) Marker() bool
- func (o *Options) Private() bool
- func (o *Options) Set(name string, f bool)
- func (o *Options) String() string
- func (o *Options) UTC() bool
Constants ¶
View Source
const ( //ArmorOpt is name of armor option ArmorOpt = "armor" //DebugOpt is name of debug option DebugOpt = "debug" //GDumpOpt is name of gdump option GDumpOpt = "gdump" //IntegerOpt is name of int option IntegerOpt = "int" //JSONOpt is name of json option (CLI only) JSONOpt = "json" //LiteralOpt is name of literal option LiteralOpt = "literal" //MarkerOpt is name of marker option MarkerOpt = "marker" //PrivateOpt is name of private option PrivateOpt = "private" //UTCOpt is name of utc option UTCOpt = "utc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptFunc ¶
type OptFunc func(*Options)
OptFunc is self-referential function for functional options pattern
Click to show internal directories.
Click to hide internal directories.