Documentation ¶ Index ¶ type Accepts func ParseAccepts(input string) Accepts func (accepts Accepts) GetPreferredValue(availables []string) (index int, value string, ok bool) func (accepts Accepts) Len() int func (accepts Accepts) Less(i, j int) bool func (accepts Accepts) Swap(i, j int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Accepts ¶ type Accepts []acceptItem func ParseAccepts ¶ func ParseAccepts(input string) Accepts func (Accepts) GetPreferredValue ¶ func (accepts Accepts) GetPreferredValue(availables []string) (index int, value string, ok bool) make sure `accepts` is sorted func (Accepts) Len ¶ func (accepts Accepts) Len() int func (Accepts) Less ¶ func (accepts Accepts) Less(i, j int) bool func (Accepts) Swap ¶ func (accepts Accepts) Swap(i, j int) Source Files ¶ View all Source files acceptItem.go accepts.go Click to show internal directories. Click to hide internal directories.