Registry / utility / go-toolsmith-astequal

go-toolsmith-astequal

JSON →
library1.2.0gogounverified

Package astequal provides AST (deep) equality check operations for Go AST nodes.

go get github.com/go-toolsmith/astequal
INSTALL
IMPORT
SIG · GO-TOOLSMITH-ASTEQ
G
go-toolsmith-astequal
utilitygov1.2.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.

astequal
github.com/go-toolsmith/astequal

Compare two AST nodes for deep equality.

package main import ( "fmt" "github.com/go-toolsmith/astequal" "go/ast" ) func main() { node1 := &ast.Ident{Name: "x"} node2 := &ast.Ident{Name: "x"} fmt.Println(astequal.Node(node1, node2)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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