Photo Credit: blaahhi Some concepts have names, and sometimes we care about those names, even (or especially) in our code. const ( CCVisa = "Visa" CCMasterCard = "MasterCard" CCAmericanExpress = "American Express" ) At other times, we only care to distinguish one thing from the other. There are times when there’s no inherently meaningful value for a thing. For example, if we’re storing products in
![iota: Elegant Constants in Golang - Blog | Splice](https://cdn-ak-scissors.b.st-hatena.com/image/square/c413e0bcbcaf85e8fdf9692396de989adc2abf41/height=288;version=1;width=512/https%3A%2F%2Fsplice.com%2Fblog%2Fwp-content%2Fuploads%2F2014%2F08%2F3597105175_80b3a2acdf_b.jpg)