pkg

package
v1.4.2-125 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(p *packages.Package) string

Dir returns absolute path of the package in a filesystem

func Load

func Load(path string) (*packages.Package, error)

Load loads package by its import path

Types

type Package

type Package struct {
	Name  string
	Files map[string]*ast.File
}

func AST

func AST(fs *token.FileSet, p *packages.Package) (*Package, error)

AST returns package's abstract syntax tree

Jump to

Keyboard shortcuts

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