Re: [go-nuts] Is it necessary to start function names within main package with capitalized letter?

2020-07-02 Thread Jake Montgomery
On Wednesday, June 24, 2020 at 12:46:42 PM UTC-4, Axel Wagner wrote: > > Personally, I tend to do it. Note that it doesn't actually make a > difference from a technical perspective - main can't be imported, so it > makes no real sense to export any identifiers. > There is a case where main

Re: [go-nuts] Is it necessary to start function names within main package with capitalized letter?

2020-06-24 Thread 'K Richard Pixley' via golang-nuts
I generally do the reverse. Everything is internal, lower case, until and unless I need it elsewhere.  Then I reevaluate where the boundaries should be at that time. I often find that as an exported API, I need/want different things out of it than I did when it was internal. -- You

Re: [go-nuts] Is it necessary to start function names within main package with capitalized letter?

2020-06-24 Thread 'Axel Wagner' via golang-nuts
Personally, I tend to do it. Note that it doesn't actually make a difference from a technical perspective - main can't be imported, so it makes no real sense to export any identifiers. As such, the boundaries of what I "export" are somewhat more fluent than usual. But yeah, as you said, for