Thank you for your interest in contributing! We welcome contributions from the community.
- Use the GitHub issue tracker to report bugs
- Describe the issue clearly with steps to reproduce
- Include your Go version, OS, and any relevant logs
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test your changes thoroughly
- Commit with clear messages (
git commit -m 'Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
# Clone your fork
git clone https://github.com/YOUR_USERNAME/loadgen.git
cd loadgen
# Build
go build -o loadgen main.go
# Test
go run main.go --endpoint http://localhost:8080 --period 1s --total-time 10s- Follow standard Go conventions
- Run
go fmtbefore committing - Add comments for exported functions and types
- Keep functions focused and testable
Before submitting a PR:
- Ensure the code compiles:
go build - Test basic functionality:
go run main.go --help - Test actual log generation with a local endpoint
- Verify stats output is correct
When adding new features:
- Update the README.md
- Add example usage if applicable
- Update command-line help text
- Consider backward compatibility
By contributing, you agree that your contributions will be licensed under the Apache License 2.0.