Thank you for considering contributing to Geom2D! We welcome contributions of all kinds, including bug fixes, new features, documentation improvements, and more.
There are several ways to contribute to Geom2D:
- Report Bugs: If you find a bug, please open an issue.
- Suggest Features: Have an idea for a new feature? Before starting any work, please open a discussion or comment on an existing issue to ensure the feature aligns with the project goals.
- Improve Documentation: Spot a typo or think the docs could be clearer? Feel free to submit a pull request.
- Write Code: Implement new features, fix bugs, or improve the codebase.
Geom2D has adopted the Contributor Covenant Code of Conduct to foster an open, welcoming, and inclusive community.
Please review the code of conduct and adhere to its guidelines when interacting with the project and its community.
To get started, follow these steps:
- Clone the repository:
git clone https://github.com/mikenye/geom2d.git
- Navigate to the project directory:
cd geom2d
- Install dependencies:
go mod tidy
- Run tests to verify the setup:
go test ./...
You're all set!
- Fork the repository and create a branch:
git checkout -b your-feature-branch
- Make your changes and commit them:
git commit -m "Add a meaningful commit message"
- Push your branch to GitHub:
git push origin your-feature-branch
- Open a pull request (PR) against the
main
branch.
Please ensure your changes:
- Pass all tests (
go test ./...
) to ensure your changes don’t break existing functionality. - Include updates to documentation if necessary.
- Are formatted using
go fmt
.
- Follow idiomatic Go practices.
- Use
go fmt
to format your code before submitting. - Write clear and concise commit messages.
- Add tests for any new features or bug fixes.
- Any new public functions should include an
Example
function to demonstrate their usage.
Thank you for taking the time to contribute to Geom2D! Your efforts make the project better for everyone.