💾 Archived View for code.pfad.fr › vanitydoc › pkg captured on 2023-04-19 at 22:22:16. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
import "code.pfad.fr/vanitydoc/pkg"
package pkg computes and generate documentation for a given package.
func CopyAsset(dst io.Writer, name string) error
CopyAsset copy the given assets from the template folder.
func Gemtext(out io.Writer, pkg Package) error
Gemtext generates gemtext for the given Package.
func HTML(out io.Writer, pkg Package) error
HTML generates html for the given Package.
type Package struct { Doc *doc.Package FileSet *token.FileSet ModulePath string VCS autodiscovery.VCS Stylesheets []string SubPackages []string Synopsis func(string) string Breadcrumbs func() []string }
Package holds the documentation data of a given package.
func NewPackage(pkgFS fs.FS, importPath string) (Package, error)
NewPackage computes Doc and FileSet fields for a package.
TODO: manage build tags
https://codeberg.org/pfad.fr/vanitydoc
git clone
https://codeberg.org/pfad.fr/vanitydoc git@codeberg.org:pfad.fr/vanitydoc