Documentation
¶
Overview ¶
Package doc renders Go package documentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Pos, End int32
Kind AnnotationKind
PathIndex int16
}
type AnnotationKind ¶
type AnnotationKind int16
const ( // Link to export in package specified by Paths[PathIndex] with fragment // Text[strings.LastIndex(Text[Pos:End], ".")+1:End]. LinkAnnotation AnnotationKind = iota // Anchor with name specified by Text[Pos:End] or typeName + "." + // Text[Pos:End] for type declarations. AnchorAnnotation // Comment. CommentAnnotation // Link to package specified by Paths[PathIndex]. PackageLinkAnnotation // Link to builtin entity with name Text[Pos:End]. BuiltinAnnotation )
type Code ¶
type Code struct {
Text string
Annotations []Annotation
Paths []string
}
type Documentation ¶
type Documentation struct {
Filenames []string
Notes map[string][]*Note
Doc string
Consts []*Value
Types []*Type
Vars []*Value
Funcs []*Func
Examples []*Example
Truncated bool
}
Documentation is the documentation for an entire package.
type Package ¶
type Package struct {
Documentation
Name string
Synopsis string
Imports []string
}
Package contains package documentation plus some extra information.
Click to show internal directories.
Click to hide internal directories.