Golan 101¶
Disclaimer¶
I just got started, meaning my experience is nil. I'll be compiling things I found here and it will evolve as I
spend more time on learning how to properly write Golang.
So don't take everything written down here for granted, please double check because it might be wrong...
New project¶
Create a module¶
If you want a way out of Golang monorepo structure, meaning you want to put your files somewhere out of $GOROOT and/or
$GOPATH scope, you can init a go module, e.g:
mkdir myNewProject && cd myNewProject
go mod init myNewProject