parse

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackage

func LoadPackage(dir string) (*doc.Package, error)

LoadPackage loads the Go package from the specified directory and returns its documentation.

Parameters:

  • dir: The path to the package directory to load

Returns:

  • *doc.Package: The parsed documentation package
  • error: Any error encountered while parsing the directory

func ParseDocPackageFromSource

func ParseDocPackageFromSource(name string, files map[string]string) (*doc.Package, error)

ParseDocPackageFromSource parses in-memory Go files and returns a *doc.Package.

Parameters:

  • name: The package name
  • files: A map of filename to Go source code

Returns:

  • *doc.Package: The parsed documentation package
  • error: Any error encountered during parsing

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL