On Thu, 16 Aug 2018 16:54:35 -0700 Liam Breck <networkimp...@gmail.com> wrote:
> Indeed, the problem is largely go fmt, I already raised this, but no > one picked up on it: > > I use this one-liner: > > v := a; if t { v = b } > > This is not compatible with go fmt, but that tool's effects are > undocumented (see issue 18790 > <https://github.com/golang/go/issues/18790> which was declined), and > it has no switches to disable/enable features. Now THAT is something I can help you with: https://github.com/mbenkmann/goformat has the option "inlineblocks=keep" which should give you what you want. And if it doesn't, you're welcome to contribute more switches. MSB -- Brains are the thing most fairly distributed on this world because everyone thinks he's got more than anyone else. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.