Re: [go-nuts] A Go Const suggester?

2018-03-28 Thread mrx
Thanks, there seems to be a tool already for most things in Go, just wonderful! Patrik Iselind On Wed, Mar 28, 2018 at 10:54 AM, Ian Davis wrote: > On Wed, 28 Mar 2018, at 8:32 AM, Patrik Iselind wrote: > > Is there such a tool that can go through a GoLang code base and suggest > values that mi

Re: [go-nuts] A Go Const suggester?

2018-03-28 Thread Ian Davis
On Wed, 28 Mar 2018, at 8:32 AM, Patrik Iselind wrote: > 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 c

[go-nuts] A Go Const suggester?

2018-03-28 Thread Patrik Iselind
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