Skip to content

Contributing

We welcome contributions to DAI!
Whether it's fixing a bug, improving documentation, or adding a new feature, your help is appreciated.


How to contribute

  1. Fork the repository
    Click the "Fork" button at the top-right of the DAI repository.

  2. Clone your fork

git clone https://github.com/<your-username>/dai.git
cd dai
  1. Create a new branch
git checkout -b feature/my-new-feature
  1. Make changes
  2. Follow Go best practices.
  3. Format your code with gofmt.
  4. Keep functions small and modular.

  5. Test your changes

go test ./...
  1. Commit changes
git add .
git commit -m "Add my new feature"
  1. Push to your fork
git push origin feature/my-new-feature
  1. Open a Pull Request
    Go to your fork on GitHub and click "Compare & pull request".

Code style guidelines

  • Use gofmt before committing.
  • Follow idiomatic Go naming conventions.
  • Keep CLI command descriptions clear and concise.
  • Avoid introducing unnecessary dependencies.

Reporting issues

If you find a bug, please open a GitHub issue with: - Steps to reproduce - Expected behavior - Actual behavior - Any relevant logs or screenshots


Next: License