toolshonnef.co/go/tools/debug Index | Files

package debug

import "honnef.co/go/tools/debug"

Package debug contains helpers for debugging static analyses.

Index

Functions

func FormatNode

func FormatNode(node ast.Node) string

func TypeCheck

func TypeCheck(src string) (*ast.File, *types.Package, *types.Info, error)

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.5.0-0.dev
Published
Feb 3, 2023
Platform
js/wasm
Imports
7 packages
Last checked
3 seconds ago

Tools for package owners.