Skip to content
/ undent Public

Go package which removes leading indentation/white-space from strings.

License

Notifications You must be signed in to change notification settings

jimeh/undent

Repository files navigation

undent

Go package which removes leading indentation/white-space from strings.

Go Reference GitHub tag (latest SemVer) 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.

Benchmarks

Benchmark reports and graphs are available here: https://jimeh.me/undent/dev/bench/

License

MIT