gotools/godoc/pres.go

type SearchResultFunc

type Presentation

// NewPresentation returns a new Presentation from a corpus.
// It sets SearchResults to:
// [SearchResultDoc SearchResultCode SearchResultTxt].
func NewPresentation(c *Corpus) *Presentation {}

func (p *Presentation) FileServer() http.Handler {}

func (p *Presentation) ServeHTTP(w http.ResponseWriter, r *http.Request) {}

func (p *Presentation) PkgFSRoot() string {}

func (p *Presentation) CmdFSRoot() string {}

// TODO(bradfitz): move this to be a method on Corpus. Just moving code around for now,
// but this doesn't feel right.
func (p *Presentation) GetPkgPageInfo(abspath, relpath string, mode PageInfoMode) *PageInfo {}

// TODO(bradfitz): move this to be a method on Corpus. Just moving code around for now,
// but this doesn't feel right.
func (p *Presentation) GetCmdPageInfo(abspath, relpath string, mode PageInfoMode) *PageInfo {}