go - File name convention for compound words? -
is there common convention in go name files contain compound words?
for example wrote implementation of weighted union find algorithm , put own source file. how should name file?
// mixed case weightedunionfind.go // lower case weightedunionfind.go // snake case weighted_union_find.go
i found convention regarding package names , following question file naming conventions in general, what conventions filenames in go?.
therefore grepped through go package source files , ended weightedunionfind.go
.
although it's not formally specified in https://golang.org/doc/code.html#overview - snake_case
convention across of standard library , third party libraries.
Comments
Post a Comment