Contributing
We welcome contributions of all kinds! Whether you are fixing a bug, improving documentation, or adding a new feature, your help is appreciated.
Development Setup
Section titled “Development Setup”To get started with development, clone the repository and install the dependencies:
git clone https://github.com/fco-gt/gopotencycd gopotencygo mod downloadUsing the Makefile
Section titled “Using the Makefile”We include a Makefile to simplify common development tasks.
| Command | Description |
|---|---|
make test | Runs all unit tests with the race detector enabled. |
make bench | Runs all performance benchmarks. |
make build | Compiles all example applications in the examples/ directory. |
make lint | Runs the linter (requires golangci-lint). |
make help | Shows a list of all available commands. |
Submitting a Pull Request
Section titled “Submitting a Pull Request”- Create a Branch: Use a descriptive name like
feature/new-storageorfix/error-typo. - Write Tests: Ensure your changes are covered by unit tests.
- Run Benchmarks: If your change affects the core flow, run
make benchto ensure no performance regression. - Pass CI: GitHub Actions will automatically run
make testandmake buildon your PR. - Request Review: Once the checks pass, wait for a maintainer to review your code.