Golang-Program-Structure
This is a Project structure for developers to kick-start their journey of developing golang project.
๐ Application Requirement
- Install Go version - 1.19.2 via
- https://www.digitalocean.com/community/tutorial_collections/how-to-install-go OR https://golang.org/dl
- Once installed, Please check via below command
go version
๐ ๏ธ Start the application locally
-
Clone the repository
-
Create an .env file at root directory of project and copy the keys from .env.example file and update its values
-
Run
go get .
to install all the required dependencies -
From go-program-structure directory, open a terminal and run
go run .
- If any error comes related to any dependency, then install dependency individually as like below command
go get <URL of dependency>
Run Swagger
- Swagger doc URL - http://xxxxxxxxxx:PORT/vVERSION/SERVICENAME/docs
๐ You are all set!