feat(undent): add initial implementation of String, Stringf, and Bytes

This commit is contained in:
2020-11-26 02:48:17 +00:00
parent 7228fc7247
commit 6cdaf8a476
10 changed files with 812 additions and 0 deletions

View File

@@ -1 +1,20 @@
# 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"
}
```