Skip to content

khouloudhaddad/booking-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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 ******************************

  1. Greet clients

  2. Define constantes & variables

  3. Data Types

  4. Getting User inputs (fmt.Scan(&<var_name>): & is indicating pointer(also called special variable in Go))

  5. Arrays vs Slices (Dynamic array)

  6. Loops: In Go we have only one type of loops: for

  7. If...Else

  8. Switch

  9. Code cleaning => functions

About

Go Booking App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages