Skip to content

Contributing

We welcome contributions of all kinds! Whether you are fixing a bug, improving documentation, or adding a new feature, your help is appreciated.

To get started with development, clone the repository and install the dependencies:

Terminal window
git clone https://github.com/fco-gt/gopotency
cd gopotency
go mod download

We include a Makefile to simplify common development tasks.

CommandDescription
make testRuns all unit tests with the race detector enabled.
make benchRuns all performance benchmarks.
make buildCompiles all example applications in the examples/ directory.
make lintRuns the linter (requires golangci-lint).
make helpShows a list of all available commands.
  1. Create a Branch: Use a descriptive name like feature/new-storage or fix/error-typo.
  2. Write Tests: Ensure your changes are covered by unit tests.
  3. Run Benchmarks: If your change affects the core flow, run make bench to ensure no performance regression.
  4. Pass CI: GitHub Actions will automatically run make test and make build on your PR.
  5. Request Review: Once the checks pass, wait for a maintainer to review your code.