Documentation ¶
Overview ¶
Generated by gen.go, DON NOT EDIT!
Index ¶
- func Bool(q Query, key string, dft bool) (bool, error)
- func Duration(q Query, key string, dft time.Duration) (time.Duration, error)
- func Float32(q Query, key string, dft float32) (float32, error)
- func Float64(q Query, key string, dft float64) (float64, error)
- func Int(q Query, key string, dft int) (int, error)
- func Int16(q Query, key string, dft int16) (int16, error)
- func Int32(q Query, key string, dft int32) (int32, error)
- func Int64(q Query, key string, dft int64) (int64, error)
- func Int8(q Query, key string, dft int8) (int8, error)
- func JSON(q Query, key string, ptr any) error
- func ParseURL(rawurl string, defaultScheme string) (*url.URL, error)
- func RequiredBool(q Query, key string) (bool, error)
- func RequiredDuration(q Query, key string) (time.Duration, error)
- func RequiredFloat32(q Query, key string) (float32, error)
- func RequiredFloat64(q Query, key string) (float64, error)
- func RequiredInt(q Query, key string) (int, error)
- func RequiredInt16(q Query, key string) (int16, error)
- func RequiredInt32(q Query, key string) (int32, error)
- func RequiredInt64(q Query, key string) (int64, error)
- func RequiredInt8(q Query, key string) (int8, error)
- func RequiredString(q Query, key string) (string, error)
- func RequiredUint(q Query, key string) (uint, error)
- func RequiredUint16(q Query, key string) (uint16, error)
- func RequiredUint32(q Query, key string) (uint32, error)
- func RequiredUint64(q Query, key string) (uint64, error)
- func RequiredUint8(q Query, key string) (uint8, error)
- func String(q Query, key string, dft string) string
- func Uint(q Query, key string, dft uint) (uint, error)
- func Uint16(q Query, key string, dft uint16) (uint16, error)
- func Uint32(q Query, key string, dft uint32) (uint32, error)
- func Uint64(q Query, key string, dft uint64) (uint64, error)
- func Uint8(q Query, key string, dft uint8) (uint8, error)
- type Parser
- func (p *Parser) Bool(val *bool, key string, dft bool) *Parser
- func (p *Parser) Duration(val *time.Duration, key string, dft time.Duration) *Parser
- func (p *Parser) Err() error
- func (p *Parser) Float32(val *float32, key string, dft float32) *Parser
- func (p *Parser) Float64(val *float64, key string, dft float64) *Parser
- func (p *Parser) Int(val *int, key string, dft int) *Parser
- func (p *Parser) Int16(val *int16, key string, dft int16) *Parser
- func (p *Parser) Int32(val *int32, key string, dft int32) *Parser
- func (p *Parser) Int64(val *int64, key string, dft int64) *Parser
- func (p *Parser) Int8(val *int8, key string, dft int8) *Parser
- func (p *Parser) RequiredBool(val *bool, key string) *Parser
- func (p *Parser) RequiredDuration(val *time.Duration, key string) *Parser
- func (p *Parser) RequiredFloat32(val *float32, key string) *Parser
- func (p *Parser) RequiredFloat64(val *float64, key string) *Parser
- func (p *Parser) RequiredInt(val *int, key string) *Parser
- func (p *Parser) RequiredInt16(val *int16, key string) *Parser
- func (p *Parser) RequiredInt32(val *int32, key string) *Parser
- func (p *Parser) RequiredInt64(val *int64, key string) *Parser
- func (p *Parser) RequiredInt8(val *int8, key string) *Parser
- func (p *Parser) RequiredString(val *string, key string) *Parser
- func (p *Parser) RequiredUint(val *uint, key string) *Parser
- func (p *Parser) RequiredUint16(val *uint16, key string) *Parser
- func (p *Parser) RequiredUint32(val *uint32, key string) *Parser
- func (p *Parser) RequiredUint64(val *uint64, key string) *Parser
- func (p *Parser) RequiredUint8(val *uint8, key string) *Parser
- func (p *Parser) String(val *string, key string, dft string) *Parser
- func (p *Parser) Uint(val *uint, key string, dft uint) *Parser
- func (p *Parser) Uint16(val *uint16, key string, dft uint16) *Parser
- func (p *Parser) Uint32(val *uint32, key string, dft uint32) *Parser
- func (p *Parser) Uint64(val *uint64, key string, dft uint64) *Parser
- func (p *Parser) Uint8(val *uint8, key string, dft uint8) *Parser
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser used to parse arguments like url
func (*Parser) RequiredBool ¶
RequiredBool parses required argument
func (*Parser) RequiredDuration ¶
RequiredDuration parses required argument
func (*Parser) RequiredFloat32 ¶
RequiredFloat32 parses required argument
func (*Parser) RequiredFloat64 ¶
RequiredFloat64 parses required argument
func (*Parser) RequiredInt ¶
RequiredInt parses required argument
func (*Parser) RequiredInt16 ¶
RequiredInt16 parses required argument
func (*Parser) RequiredInt32 ¶
RequiredInt32 parses required argument
func (*Parser) RequiredInt64 ¶
RequiredInt64 parses required argument
func (*Parser) RequiredInt8 ¶
RequiredInt8 parses required argument
func (*Parser) RequiredString ¶
RequiredString parses required argument
func (*Parser) RequiredUint ¶
RequiredUint parses required argument
func (*Parser) RequiredUint16 ¶
RequiredUint16 parses required argument
func (*Parser) RequiredUint32 ¶
RequiredUint32 parses required argument
func (*Parser) RequiredUint64 ¶
RequiredUint64 parses required argument
func (*Parser) RequiredUint8 ¶
RequiredUint8 parses required argument