1. 프로젝트 초기화 - Project Initialization
mkdir my-project
cd my-project
go mod init github.com/my-repo/my-project
2. 프로젝트 구조 - Project Structure
my-project/
├── cmd
│ └── api/
│ └── main.go
│ └── xxx/
│ └── xxx.go
├── internal/
│ └── router/
│ └── router.go
│ └── config/
│ └── config.go
│ └── xxx/
│ └── xxx.go
├── go.mod
└── go.sum
3. Gin 설치 - Install Gin
Install the Gin package and clean up dependencies:
cd ~/my-project/
go get github.com/gin-gonic/gin
go mod tidy