Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { // Name is e.g. “w3m”, or “systemd.service”. Name string // Package is the Debian binary package from which this manpage // was extracted. Package *PkgMeta // Section is the man section to which this manpage belongs, // e.g. 1, 3pm, … Section string // Language is the locale-like language directory // (i.e. language[_territory][.codeset][@modifier], with language coming // from ISO639 and territory coming from ISO3166) in which this // manpage was found. Language string LanguageTag language.Tag }
func FromManPath ¶
FromManPath constructs a manpage, gathering details from path (relative underneath /usr/share/man).
func FromServingPath ¶
FromServingPath constructs a manpage, gathering details from path
func (*Meta) MainSection ¶
func (*Meta) RawPath ¶
RawPath returns the path to access the raw manpage equivalent of what is currently being served, i.e. locked to the current language.
func (*Meta) ServingPath ¶
type PkgMeta ¶
type PkgMeta struct { Component string Filename string Sourcepkg string Binarypkg string Replaces []string // Version is used by the templates when rendering. Version version.Version // Suite is the Debian suite in which this binary package was // found. Suite string }
func (*PkgMeta) SameBinary ¶
Click to show internal directories.
Click to hide internal directories.