This project is a Go web application with GolangCI-Lint integration for enforcing coding standards.
- Go: https://go.dev/doc/install
- GolangCI-Lint: https://github.com/golangci/golangci-lint
Follow these steps to run the Go application locally:
-
Clone this repository to your local machine:
git clone https://github.com/itsbharatsaini/go-app.git
-
Navigate to the project directory:
cd go-app
-
Build the Go application:
go build -o <output-file-name>
-
Run the Go application:
./<output-file-name>
golangci-lint run
This command will execute all the configured linters and display any linting errors or warnings.
docker build -t <image-name> .
Replace <image-name>
with the desired name for your Docker image.
docker run -p 8080:8080 <image-name>
Once the Docker container is running, you can access the application at http://localhost:8080 in your web browser.