mirror of
https://github.com/jimeh/undent.git
synced 2026-02-19 11:56:39 +00:00
1.8 KiB
1.8 KiB
undent
Go package which removes leading indentation/white-space from strings.
s := undent.String(`
{
"hello": "world"
}`,
)
fmt.Println(s)
{
"hello": "world"
}
Documentation
Please see the Go Reference for documentation and examples.
Benchmarks
Benchmark reports and graphs are available here: https://jimeh.me/undent/dev/bench/