Registry / utility / go-toolsmith-astfmt

go-toolsmith-astfmt

JSON →
library1.1.0gogounverified

Package astfmt implements ast.Node formatting with a fmt-like API.

go get github.com/go-toolsmith/astfmt
INSTALL
IMPORT
SIG · GO-TOOLSMITH-ASTFM
G
go-toolsmith-astfmt
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.

astfmt
github.com/go-toolsmith/astfmt

Format an AST node using a fmt-like syntax.

package main import ( "fmt" "github.com/go-toolsmith/astfmt" "go/ast" ) func main() { node := &ast.Ident{Name: "x"} fmt.Println(astfmt.Sprintf("%s", 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-astfmt — go get go-toolsmith-astfmt · libregistry