โ GO commands
go run ๐
- compiles and executes multiple filesgo build ๐
- compiles the program- generates executable file as main.exe on windows and main on macOS
./main
- to execute this file
go fmt โ
- formats all the code in each file in current directorygo install
- compiles and installs the packagego get
- gets the raw source code of someone else's packagego test
- Runs any tests associated with the current project
Packages are of multiple types
- Executable
- package main - executable type packages
- Reusable