Is there such a tool that can go through a GoLang code base and suggest values that might be a good idea to convert into constants?
If a value (for example an int or a string, but excluding values that are already constants) is hard coded at least X times in the code base, could be a candidate for being a constant. Having all these hard coded and repeated values as constants would reduce the risk of typos when typing out the values every time. Any suggestions? -- 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.