package astutil
import "honnef.co/go/tools/go/ast/astutil"
Index ¶
- func GroupSpecs(fset *token.FileSet, specs []ast.Spec) [][]ast.Spec
- func IsBlank(id ast.Expr) bool
- func IsIdent(expr ast.Expr, ident string) bool
- func IsIntLiteral(expr ast.Expr, literal string) bool
- func IsZero(expr ast.Expr) bool
- func Preamble(f *ast.File) string
Functions ¶
func GroupSpecs ¶
func IsBlank ¶
isBlank returns whether id is the blank identifier "_". If id == nil, the answer is false.
func IsIdent ¶
func IsIntLiteral ¶
func IsZero ¶
Deprecated: use IsIntLiteral instead
func Preamble ¶
Source Files ¶
util.go
- Version
- v0.1.0
- Published
- Dec 14, 2020
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 27 minutes ago –
Tools for package owners.