FAQ

On 26 December 2014 at 12:34, JohnGB wrote:
(...)
I'm tempted to go with the switch method, but before I commit to that,
I'd like feedback on it,
or pointers to any other examples or methods that have been well executed.
If you generated code for lookup structures you could switch the
implementation in future in no time.

For example time package uses map, codegen tool:

http://golang.org/src/time/genzabbrs.go


and its output:

http://golang.org/src/time/zoneinfo_abbrs_windows.go

--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 26, '14 at 11:34a
activeDec 26, '14 at 3:08p
posts3
users3
websitegolang.org

People

Translate

site design / logo © 2023 Grokbase