FAQ
Sandeep,

To more fully flesh out what Pierre suggested:
http://play.golang.org/p/y9HhvPirCM

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 golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 18, '16 at 5:49a
activeMar 18, '16 at 4:01p
posts5
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase