Client
Install Package with go get
go get
downloads the packages named by the import paths, along with their dependencies.
To install the go-client
package from the feat/mainsail
branch, you need to specify the commit SHA, as Go modules require a valid version or commit hash.
Use the following command:
go get github.com/ArkEcosystem/go-client/client@d9bd2b92132ace0fa0c63774f48f8758385fdd80
This command tells Go to fetch the package at the specified commit SHA from the feat/mainsail
branch.
Development
- Fork the package.
- Clone your forked repository.
git clone https://github.com/<githubusername>/go-client
- Next, move into the cloned directory.
cd go-client
- Switch to the
feat/mainsail
branch.
git checkout feat/mainsail
- Install the dependencies.
# The -t flag will also fetch dependencies related to tests
go get -t ./...
- Dependencies are now installed. You can now run the tests to see if everything is running as it should.
go test ./...