mirror of
https://github.com/jimeh/undent.git
synced 2026-02-19 11:56:39 +00:00
21 lines
218 B
Markdown
21 lines
218 B
Markdown
# undent
|
|
|
|
|
|
Go package which removes leading indentation/white-space from multi-line strings
|
|
and byte slices.
|
|
|
|
```go
|
|
s := undent.String(`
|
|
{
|
|
"hello": "world"
|
|
}`,
|
|
)
|
|
fmt.Println(s)
|
|
```
|
|
|
|
```
|
|
{
|
|
"hello": "world"
|
|
}
|
|
```
|