Registry / utility / turbolent-prettier

turbolent-prettier

JSON →
library0.0.0-20220320183459-661cc755135dgogounverified

A Go implementation of a code formatter similar to Prettier.

go get github.com/turbolent/prettier
INSTALL
IMPORT
SIG · TURBOLENT-PRETTIER
T
turbolent-prettier
utilitygov0.0.0-20220320183459-661cc755135d
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.

prettier
✓ github.com/turbolent/prettier

Formats Go source code using Prettier-like rules.

package main import ( "fmt" "github.com/turbolent/prettier" ) func main() { formatted, err := prettier.Format("func main() { }") if err != nil { panic(err) } fmt.Println(formatted) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220320183459-661cc755135dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
turbolent-prettier — go get turbolent-prettier · libregistry