Documentation ¶
Index ¶
- Variables
- func GetContentType(header http.Header) string
- func MapToURLValues(m map[string]string) (vals url.Values)
- func UnmarshalURLValues(values url.Values, s interface{}) error
- type Map
- type Option
- type URL
- type Value
- func (v Value) Bool() (bool, error)
- func (v Value) Bytes() []byte
- func (v *Value) Default(dftVal string) *Value
- func (v Value) Duration() (time.Duration, error)
- func (v Value) Durations(seps ...byte) (vals []time.Duration, err error)
- func (v Value) Float32() (float32, error)
- func (v Value) Float32s(seps ...byte) (vals []float32, err error)
- func (v Value) Float64() (float64, error)
- func (v Value) Float64s(seps ...byte) (vals []float64, err error)
- func (v Value) Int() (int, error)
- func (v Value) Int32s(seps ...byte) (vals []int, err error)
- func (v Value) Int64() (int64, error)
- func (v Value) Int64s(seps ...byte) (vals []int64, err error)
- func (v *Value) Set(val string) *Value
- func (v Value) Split(seps ...byte) Values
- func (v Value) String() string
- func (v Value) Strings(seps ...byte) []string
- func (v Value) Time(layout string) (time.Time, error)
- type Values
- func (v Values) Durations() (vals []time.Duration, err error)
- func (v Values) Float32s() (vals []float32, err error)
- func (v Values) Float64s() (vals []float64, err error)
- func (v Values) Int64s() (vals []int64, err error)
- func (v Values) Ints() (vals []int, err error)
- func (v Values) Strings() (vals []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStruct = errors.New("Unmarshal() expects struct input. ")
Functions ¶
func GetContentType ¶
func UnmarshalURLValues ¶
UnmarshalURLValues url.Values to struct
Types ¶
type Map ¶
type Map[KT comparable, VT any] map[KT]VT
Click to show internal directories.
Click to hide internal directories.