Descriptiongo.tools/cmd/stringer: use const for names, slice for map strings
Improve the generated code by using a const instead of a var for the names string.
This requires some refactoring to get neat const() and var() blocks.
Also change the generate map code go use a single sliced string, to reduce the
size of the compiled representation (only one string value).
Patch Set 1 #
Total comments: 11
Patch Set 2 : diff -r 2aa3d1c892469f5dcd093d28be98977f56b744f1 https://code.google.com/p/go.tools #
Total comments: 1
MessagesTotal messages: 5
|