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"
}
Description
Go package which removes leading indentation/white-space from strings.
Readme MIT 299 KiB
Languages
Go 89.6%
Makefile 10.4%