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 can be imported. You can import main from a test in the same directory, but with a different package name. AFAICT, this allows 'external' testing of executable code. In that case what identifiers are exported does matter. But since most of us will probably never use this feature, it probably does not matter much in practice.
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7e4c307f-cd98-453d-b8bd-e685062830b8o%40googlegroups.com.