goutil

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveFunc

func ResolveFunc(info *types.Info, callable ast.Expr) (ast.Expr, *types.Func)

func SprintNode

func SprintNode(fset *token.FileSet, n ast.Node) string

SprintNode returns the textual representation of n. If fset is nil, freshly created file set will be used.

Types

type LoadConfig added in v0.3.8

type LoadConfig struct {
	Fset     *token.FileSet
	Filename string
	Data     interface{}
	Importer types.Importer
}

type LoadResult added in v0.3.8

type LoadResult struct {
	Pkg    *types.Package
	Types  *types.Info
	Syntax *ast.File
}

func LoadGoFile added in v0.3.8

func LoadGoFile(config LoadConfig) (*LoadResult, error)

Jump to

Keyboard shortcuts

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