Versions in this module Expand all Collapse all v0 v0.1.0 Oct 10, 2023 Changes in this version + const MaxQuality + const MinQuality + type Acceptable struct + Params map[string]string + Quality Quality + SubValue string + Value string + func Negotiate(available, preferences List) (Acceptable, bool) + func (a *Acceptable) Parse(input string, mode SubValueMode) error + func (a *Acceptable) UnmarshalText(input []byte) error + func (a Acceptable) Append(out []byte) []byte + func (a Acceptable) CompareTo(b Acceptable) int + func (a Acceptable) EqualTo(b Acceptable) bool + func (a Acceptable) MarshalText() ([]byte, error) + func (a Acceptable) String() string + type List []Acceptable + func (list *List) Parse(input string, mode SubValueMode) error + func (list *List) UnmarshalText(input []byte) error + func (list List) Append(out []byte) []byte + func (list List) IsSorted() bool + func (list List) Len() int + func (list List) Less(i, j int) bool + func (list List) MarshalText() ([]byte, error) + func (list List) Sort() + func (list List) String() string + func (list List) Swap(i, j int) + type Quality uint + func (q *Quality) Parse(input string) error + func (q *Quality) UnmarshalText(input []byte) error + func (q Quality) Append(out []byte) []byte + func (q Quality) CompareTo(other Quality) int + func (q Quality) GoString() string + func (q Quality) MarshalText() ([]byte, error) + func (q Quality) String() string + type SubValueMode uint + const AbsentSubValue + const OptionalSubValue + const RequiredSubValue