Hey! I am Currently learning Go Lang, and I am taking some basic Notes on my Notion and though I'd also just publish them here. They are not well thought out or well written but it's just me taking notes from time to time for my reference.
I am taking the Udemy Course by Maximilian Schwarzmüller,
import "fmt" func main(){ fmt.Print("Hello World") }
go run app.go
Every Go file needs a package imported that will be same as the file name
Idea for packages is to organize code
package can be made up of multiple files
var investmentAmount float64 = 1000
The above is the detailed content of Learning Go: 01. For more information, please follow other related articles on the PHP Chinese website!