Run go mod init <module_name> to create a new module
In Go everything is organised in packages (exp: package main)
We need to specify the entry point for the application (func main(){Logic here} => is unique by project)
Command to run a go file: go run <file_name.go>
************************** STEPS FOR CREATING OUR TICKETS BOOKING APP ******************************
-
Greet clients
-
Define constantes & variables
-
Data Types
-
Getting User inputs (fmt.Scan(&<var_name>): & is indicating pointer(also called special variable in Go))
-
Arrays vs Slices (Dynamic array)
-
Loops: In Go we have only one type of loops: for
-
If...Else
-
Switch
-
Code cleaning => functions