Golang file naming convention

what is the naming convention for golang source files? Is the underscore "_" to separate multiple word names? Or is it named after multiple words separated by the middle bar "-"? Look forward to reliable textual research sources.

Aug.03,2021

is generally underlined.


generally underscore but it's best not to use


according to official naming rules, it's best not to use underscores, just plain lowercase. The content after the official sdk naming rules is meaningful.
reference:
https://golang.org/doc/effect.
https://www.cnblogs.com/heton.


my opinion is not to use an underscore, but to name it after a hump or a hump. It is consistent with the naming convention in the code.
https://golang.google.cn/doc/.
comes from here.
but in the official code, many words are basically lowercase without special processing. Of course, there is no underscore except for _ test,.

Menu