undent

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

Go Reference Actions Status Coverage GitHub issues GitHub pull requests License Status

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

Documentation

Please see the Go Reference for documentation and examples.

License

MIT

Description
Go package which removes leading indentation/white-space from strings.
Readme MIT 299 KiB
Languages
Go 89.6%
Makefile 10.4%