Documentation ¶
Index ¶
- Constants
- type Acceptable
- 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) Parse(input string, mode SubValueMode) error
- func (a Acceptable) String() string
- func (a *Acceptable) UnmarshalText(input []byte) error
- type List
- 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) Parse(input string, mode SubValueMode) error
- func (list List) Sort()
- func (list List) String() string
- func (list List) Swap(i, j int)
- func (list *List) UnmarshalText(input []byte) error
- type Quality
- type SubValueMode
Constants ¶
View Source
const ( MinQuality = 0 MaxQuality = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acceptable ¶
func Negotiate ¶
func Negotiate(available, preferences List) (Acceptable, bool)
func (Acceptable) Append ¶
func (a Acceptable) Append(out []byte) []byte
func (Acceptable) CompareTo ¶
func (a Acceptable) CompareTo(b Acceptable) int
func (Acceptable) EqualTo ¶
func (a Acceptable) EqualTo(b Acceptable) bool
func (Acceptable) MarshalText ¶
func (a Acceptable) MarshalText() ([]byte, error)
func (*Acceptable) Parse ¶
func (a *Acceptable) Parse(input string, mode SubValueMode) error
func (Acceptable) String ¶
func (a Acceptable) String() string
func (*Acceptable) UnmarshalText ¶
func (a *Acceptable) UnmarshalText(input []byte) error
type SubValueMode ¶
type SubValueMode uint
const ( OptionalSubValue SubValueMode = iota RequiredSubValue AbsentSubValue )
Click to show internal directories.
Click to hide internal directories.