Documentation ¶
Overview ¶
Package godoc is for rendering Go documentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEncodingType = fmt.Errorf("want initial bytes to be %q but they aren't", fastEncodingType)
ErrInvalidEncodingType is returned when the data to DecodePackage has an invalid encoding type.
View Source
var TypesToGenerate = []any{&encPackage{}}
Used by the gen program to generate encodings for unexported types.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Name string // full file pathname relative to zip content directory AST *ast.File }
A File contains everything needed about a source file to render documentation.
type Package ¶
A Package contains package-level information needed to render Go documentation.
func DecodePackage ¶
DecodePackage decodes a byte slice encoded with Package.Encode into a Package.
Click to show internal directories.
Click to hide internal directories.