This is a repository where I explore Go!
-
PascalCase is for exported (public) functions, and camelCase for private. (Documentation)
-
:= declares a new inferred type
-
type declaration is reversed as from C#
-
No need for parentheses in if statements
-
No need for semicolon at end of variables etc. unless it's
Go functions:
func function(i int) { // code goes here }
C# methods:
void Method(int i) { // code goes here }
- The blank identifier in Golang - golangdocs.com
- How to build a web scraper using golang with colly - dev.to/vianeltxt
- go-colly.org
First google result on term 'go semicolon' yielded possibly one of the earliest questions about Go on stackoverflow, datet 2 days after first official announcement (November 12th, 2009)