pkgdata

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePkgData

func WritePkgData(pkgPath string, pkgData *PackageData) error

Types

type ConstInfo

type ConstInfo struct {
	Type    string // t=xx
	Untyped bool   // no 'e='(explicit) flag
}

type PackageData

type PackageData struct {
	Vars   map[string]*VarInfo
	Consts map[string]*ConstInfo
	Funcs  map[string]bool
}

func GetPkgData

func GetPkgData(pkgPath string) *PackageData

type Section

type Section int
const (
	Section_Func  Section = 1
	Section_Var   Section = 2
	Section_Const Section = 3
)

type VarInfo added in v1.0.25

type VarInfo struct {
	Trap bool // has comment trap
}

Jump to

Keyboard shortcuts

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