pkgsite
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package pkgsite is not for external use. May change at any time withoutwarning.
Copied fromhttps://github.com/golang/pkgsite/blob/ff1e697b104e751da362159cf6c7743898eea3fe/internal/fetch/dochtml/internal/render/andhttps://github.com/golang/pkgsite/tree/88f8a28ab2102416529d05d11e8135a43e146d46/internal/fetch/dochtml.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcPrintType¶
func PrintType(fset *token.FileSet, declast.Decl, toURL func(string,string)string, topLevelDecls map[interface{}]bool)string
PrintType returns a string representation of the decl.
PrintType works by:
- Generate a map from every identifier to a URL for the identifier (or noURL if the identifier shouldn't link).
- ast.Inspect the decl to get an ordered slice of every identifier to thelink for it, using the map from step 1.
- Print out the plain doc for the decl.
- Use scanner.Scanner to find every identifier (in the same order as step2). If there is a link for the identifier, insert it. Otherwise, printthe plain doc.
funcTopLevelDecls¶added inv0.77.0
TopLevelDecls returns the top level declarations in the package.
Types¶
This section is empty.