Files
undent/README.md

218 B

undent

Go package which removes leading indentation/white-space from multi-line strings and byte slices.

s := undent.String(`
	{
	  "hello": "world"
	}`,
)
fmt.Println(s)
{
  "hello": "world"
}