On Sunday, 28 October 2018 11:11:49 UTC+2, Jan Mercl wrote: > > On Sun, Oct 28, 2018 at 2:16 AM T L <tapi...@gmail.com <javascript:>> > wrote: > > > For example, for a constant string with name Version, you can assure it > is not blank by using > > > > var _ = map[bool]int{false: 0, Version != "": 1} > > Too complicated. > > const ( > Version = "v1.11" > _ = 1 / len(Version) > ) > > Too clever! :-)
Lucio. -- 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.