Documentation
¶
Index ¶
- type PState
- func (p *PState) Arg() string
- func (p *PState) Error(err error) bool
- func (p *PState) Errorf(format string, a ...any) bool
- func (p *PState) MatchAnyFlag() bool
- func (p *PState) MatchBoolFlag(short, long string) bool
- func (p *PState) MatchFlagExpr(short, long string) bool
- func (p *PState) MatchJustFlag(short, long string) bool
- func (p *PState) MatchJustSingleFlag(flag string) bool
- func (p *PState) MatchLongFlagExpr(long string) bool
- func (p *PState) Next()
- func (p *PState) ParseAnyTime(dest *time.Time, defaultToFuture bool) bool
- func (p *PState) ParseBool(dest *bool) bool
- func (p *PState) ParseDate(dest *time.Time) bool
- func (p *PState) ParseDuration(dest *time.Duration) bool
- func (p *PState) ParseFloat(dest *float64) bool
- func (p *PState) ParseInt(dest *int) bool
- func (p *PState) ParseLocation(destLat, destLng *float64) bool
- func (p *PState) ParseLogLevel(dest *slog.Level) bool
- func (p *PState) ParseUint(dest *uint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PState ¶
func (*PState) MatchAnyFlag ¶ added in v0.6.0
func (*PState) MatchBoolFlag ¶ added in v0.5.0
func (*PState) MatchFlagExpr ¶ added in v0.5.0
func (*PState) MatchJustFlag ¶ added in v0.6.0
func (*PState) MatchJustSingleFlag ¶ added in v0.8.0
func (*PState) MatchLongFlagExpr ¶ added in v0.7.0
func (*PState) ParseAnyTime ¶ added in v0.13.0
func (*PState) ParseFloat ¶
func (*PState) ParseLocation ¶ added in v0.3.0
func (*PState) ParseLogLevel ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.