pkgx

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLoadMode = packages.LoadMode(0b11111111111111111)

Variables

This section is empty.

Functions

func Clear

func Clear()

func Load

func Load(path string) *types.Package

func Lookup

func Lookup[T types.Type](p Package, name string) (T, bool)

func LookupByPath

func LookupByPath[T types.Type](path, name string) (T, bool)

func MustLookup

func MustLookup[T types.Type](p Package, name string) T

func MustLookupByPath

func MustLookupByPath[T types.Type](path, name string) T

func Unwrap

func Unwrap(w string) string

func Wrap

func Wrap(p string) string

Types

type Package

type Package interface {
	Unwrap() *types.Package
	ID() string

	Path() string
	Name() string
	Scope() *types.Scope
}

func New

func New(path string) (p Package)

func NewT

func NewT(p *types.Package) Package

Jump to

Keyboard shortcuts

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