Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { Entries map[string][]IndexEntry Suites map[string]string Langs map[string]bool Sections map[string]bool }
func IndexFromProto ¶
func (Index) Narrow ¶
func (i Index) Narrow(acceptLang string, template, ref IndexEntry, entries []IndexEntry) []IndexEntry
type IndexEntry ¶
type IndexEntry struct { Name string // TODO: string pool Suite string // TODO: enum to save space Binarypkg string // TODO: sort by popcon, TODO: use a string pool Section string // TODO: use a string pool Language string // TODO: type: would it make sense to use language.Tag? }
func (IndexEntry) ServingPath ¶
func (e IndexEntry) ServingPath(suffix string) string
type NotFoundError ¶
type NotFoundError struct { Manpage string BestChoice IndexEntry }
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.