Thank you for your interest in contributing to Gortb! This document provides guidelines and information for contributing to this OpenRTB 2.5 implementation in Go.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/gortb.git
- Create a new branch for your changes:
git checkout -b feature/your-feature-name
- Follow standard Go coding conventions and idioms
- Use
gofmt
to format your code - Add comments for exported functions and types
- Write descriptive variable and function names
- Keep functions focused and concise
- Write unit tests for new functionality
- Ensure all tests pass before submitting a PR
- Aim for high test coverage
- Use table-driven tests where appropriate
- Update documentation for any new or modified functionality
- Include examples in godoc comments
- Keep the README.md up to date
- Update tests and documentation
- Run all tests locally
- Ensure your code follows the project's style
- Create a Pull Request with a clear title and description
- Link any relevant issues
- Wait for review and address any feedback
To run the tests:
go test ./...
- Use the GitHub issue tracker
- Include clear steps to reproduce bugs
- Provide version information
- Include relevant code samples
- Ensure all changes comply with the OpenRTB 2.5 specification
- Reference the relevant section of the spec in comments
- Maintain backward compatibility where possible
By contributing to Gortb, you agree that your contributions will be licensed under the project's license.
Feel free to open an issue for any questions about contributing to the project.
Thank you for helping improve Gortb!