Sign inSign up

itsbharatsaini/go-app

By itsbharatsaini

•Updated over 2 years ago

Go web application with GolangCI-Lint integration for enforcing coding standards.

Image
Web servers
0

91

itsbharatsaini/go-app repository overview

⁠Go Application with GolangCI-Lint

This project is a Go web application with GolangCI-Lint integration for enforcing coding standards.

GitHub repo : https://github.com/itsbharatsaini/go-app⁠

⁠Prerequisites

⁠Getting Started

Follow these steps to run the Go application locally:

  1. Clone this repository to your local machine:

    git clone https://github.com/itsbharatsaini/go-app.git
    
  2. Navigate to the project directory:

    cd go-app
    
  3. Build the Go application:

    go build -o <output-file-name>
    
  4. Run the Go application:

    ./<output-file-name>
    

⁠Running GolangCI-Lint

golangci-lint run

This command will execute all the configured linters and display any linting errors or warnings.

⁠Docker image

⁠Build the image
docker build -t <image-name> .

Replace <image-name> with the desired name for your Docker image.

⁠Run docker container:
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.

Tag summary

Content type

Image

Digest

sha256:f09881439…

Size

103.2 MB

Last updated

over 2 years ago

docker pull itsbharatsaini/go-app