dedent
dedent copied to clipboard
Removing leading NL, compatible with Python textwrap.dedent("""\.
(sorry for the previous polluted pull request, my git-fu seems to be weak!)
Agree but I think it should also strip trailing newlines, e.g. perform a strings.TrimSpace, which would match the behaviour of https://github.com/dmnd/dedent.
It seems like this is basically a duplicate of #7 (but less efficient).
Not sure why you're messing around with go.mod either?
Try it now... I think my mental model is broken, I was thinking it was a self-contained patch, and was fiddling around to understand go.mod. I think I've set everything back to how it should be and won't touch it.