Registry / utility / go-toolsmith-astp

go-toolsmith-astp

JSON →
library1.1.0gogounverified

Package astp provides predicates for checking AST node types.

go get github.com/go-toolsmith/astp
INSTALL
IMPORT
SIG · GO-TOOLSMITH-ASTP
G
go-toolsmith-astp
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

astp
github.com/go-toolsmith/astp

Check if an AST node is an Ident.

package main import ( "fmt" "github.com/go-toolsmith/astp" "go/ast" ) func main() { node := &ast.Ident{Name: "x"} fmt.Println(astp.IsIdent(node)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-toolsmith-astp — go get go-toolsmith-astp · libregistry