correlateapp-be

module
v0.0.0-...-be5a946 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2025 License: MIT

README ΒΆ

CorrelateApp Backend

πŸš€ Getting Started

To set up and run the CorrelateApp Backend locally, follow these steps:

  1. Clone the repository
git clone https://github.com/dim2k2006/correlateapp-be.git
cd correlateapp-be
  1. Install the dependencies
go mod download
  1. Install golangci-lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
  1. Install goimports
go install golang.org/x/tools/cmd/goimports@latest
  1. Run the Application:
go run ./cmd/api/main.go

Managing dependencies

To add a new dependency, run:
go get <package-name>

Note: Direct dependencies are those you explicitly import in your code. Indirect dependencies are required by your direct dependencies.

Removing Dependencies

To remove a dependency, you can use the go mod tidy command. This command will remove any dependencies that are no longer required by your code.

go mod tidy
Tidying Up

Regularly running go mod tidy ensures that your go.mod and go.sum files are clean and free of unnecessary dependencies.

go mod tidy

Benefits:

  • Removes unused dependencies.
  • Adds missing dependencies required by your imports.
  • Ensures go.mod and go.sum are in sync with your codebase.

πŸ‘πŸ‘πŸ‘

Directories ΒΆ

Path Synopsis
cmd
api command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL