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,.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d20a-2bae7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d20a-2bae7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?