Contributing to LiveGo
We welcome contributions to the LiveGo project! Whether it's reporting a bug, suggesting a feature, or submitting code, your help is appreciated.
Development Setup
To get started with developing on LiveGo, you'll need a Go development environment.
-
Clone the repository:
git clone https://github.com/gwuhaolin/livego.git cd livego
-
Install Dependencies: The project uses Go modules to manage dependencies. They will be downloaded automatically when you build or test the project. You can also download them manually:
go mod tidy go mod download
Running Tests
LiveGo uses the standard Go testing framework. The Makefile
provides a convenient command to run all tests.
make test
This is equivalent to running:
go test -v ./...
Our continuous integration pipeline, defined in .github/workflows/test.yml
, runs these tests automatically for every push and pull request on Windows, macOS, and Ubuntu to ensure cross-platform compatibility.
Building the Project
To build the livego
binary, use the make build
command:
make build
This will produce an executable file named livego
in the project root.
Submitting Changes
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear, descriptive messages.
- Ensure all tests pass by running
make test
. - Push your branch to your fork.
- Open a pull request against the
master
branch of thegwuhaolin/livego
repository.
We will review your pull request as soon as possible. Thank you for your contribution!