Skip to content

My personal golang service template that implement clean architecture.

Notifications You must be signed in to change notification settings

VincentWijaya/go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-template

This is my golang service template that implement clean architecture.

Feel free to use it 😊


How to run:

1. Clone this repo for sure 😊
2. Rename config.yaml.example to serviceName.yaml in ./files/etc/serviceName/
3. go mod tidy
4. go run cmd/main.go

Project structer:

📦go-template
 ┣ 📂cmd
 ┃ ┗ 📜main.go
 ┣ 📂constant
 ┃ ┗ 📂errs
 ┃ ┃ ┗ 📜errors.go
 ┣ 📂files
 ┃ ┗ 📂etc
 ┃ ┃ ┗ 📂serviceName
 ┃ ┃ ┃ ┣ 📜config.yaml.example
 ┃ ┃ ┃ ┗ 📜serviceName.yaml
 ┣ 📂internal
 ┃ ┣ 📂app
 ┃ ┃ ┣ 📂handler
 ┃ ┃ ┃ ┣ 📜helper.go
 ┃ ┃ ┃ ┗ 📜init.go
 ┃ ┃ ┣ 📂repo
 ┃ ┃ ┗ 📂usecase
 ┃ ┗ 📂entity
 ┃ ┃ ┗ 📜entity.go
 ┣ 📂log
 ┃ ┗ 📜serviceName.info.log
 ┣ 📜.gitignore
 ┣ 📜README.md
 ┣ 📜go.mod
 ┗ 📜go.sum

About

My personal golang service template that implement clean architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages