Thank you for your interest in contributing to nettools! We welcome contributions from everyone.
If you find a bug, please open an issue with:
- A clear description of the problem
- Steps to reproduce
- Expected vs. actual behavior
- Your environment (OS, Go version, network setup)
Open an issue describing the feature, the use case it serves, and any implementation ideas you have.
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes
- Ensure all tests pass:
make test - Run linting:
make check - Commit with a clear message
- Open a pull request
# Clone the repo
git clone https://github.com/baidu/nettools.git
cd nettools
# Install dependencies
make prepare
# Install dev tools (golangci-lint, etc.)
make install-tools
# Run tests
make test
# Run all checks
make check- Follow standard Go conventions and Effective Go
- Run
make fmtbefore committing - All exported types and functions must have godoc comments
- Write tests for new functionality
- Use clear, descriptive commit messages
- Reference issue numbers when applicable (e.g., "Fix #123: ...")
By contributing to nettools, you agree that your contributions will be licensed under the MIT License.