package debug
import "honnef.co/go/tools/debug"
Package debug contains helpers for debugging static analyses.
Index ¶
- func FormatNode(node ast.Node) string
- func TypeCheck(src string) (*ast.File, *types.Package, *types.Info, error)
Functions ¶
func FormatNode ¶
func TypeCheck ¶
TypeCheck parses and type-checks a single-file Go package from a string. The package must not have any imports.
Source Files ¶
debug.go
- Version
- v0.4.0
- Published
- Feb 3, 2023
- Platform
- windows/amd64
- Imports
- 7 packages
- Last checked
- 20 minutes ago –
Tools for package owners.