Documentation ¶
Index ¶
- func Convert(optstr string) (opts []string)
- type BoolOption
- type GetOpt
- func (g *GetOpt) BoolOption(optstr string)
- func (g *GetOpt) Get(o string) string
- func (g *GetOpt) GetFloat32(o string) (float32, error)
- func (g *GetOpt) GetFloat64(o string) (float64, error)
- func (g *GetOpt) GetInt(o string) (int, error)
- func (g *GetOpt) GetMultiple(o string) []string
- func (g *GetOpt) IsSet(o string) bool
- func (g *GetOpt) Parse(argv []string) (args []string)
- func (g *GetOpt) Reset()
- func (g *GetOpt) StringOption(optstr string)
- func (g *GetOpt) StringOptionFancy(optstr string)
- type Option
- type StringOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolOption ¶
type BoolOption struct {
// contains filtered or unexported fields
}
func (*BoolOption) String ¶
func (b *BoolOption) String() string
type GetOpt ¶
type GetOpt struct {
// contains filtered or unexported fields
}
func (*GetOpt) BoolOption ¶
func (*GetOpt) GetMultiple ¶
func (*GetOpt) StringOption ¶
func (*GetOpt) StringOptionFancy ¶
type StringOption ¶
type StringOption struct {
// contains filtered or unexported fields
}
func (*StringOption) String ¶
func (s *StringOption) String() string
Click to show internal directories.
Click to hide internal directories.