Add payment details in ticket
Concurrent ticket booking system.
Project Description Database model (ERD Diagram)
- Go requires you to organize your code within a specific workspace directory.
- The workspace contains three subdirectories: bin, pkg, and src.
- The source code for your projects should be placed in the src directory.
Create a new directory for your workspace (choose a suitable name) and set the GOPATH environment variable to point to that directory.
export GOPATH="/Users/anmol/GoProjects/"
mkdir -pv $GOPATH/src/github.com/GatorsTigers/ConcurrentBookingSystem
cd $GOPATH/src/github.com/GatorsTigers/ConcurrentBookingSystem
Go modules are a dependency management system introduced in Go 1.11 to help manage external dependencies.
go mod init github.com/GatorsTigers/ConcurrentBookingSystem
cd $GOPATH/src/github.com/GatorsTigers/
git clone github.com/GatorsTigers/ConcurrentBookingSystem
go get -u github.com/gin-gonic/gin
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
Go to run and debug in the side bar
Click on create a launch.json file
Add below text in the launch.json file
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "main.go"
}
]
}