To more fully flesh out what Pierre suggested:
I think this is a nice way to go, and even cleaner than the ternary method,
if it existed.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.