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

  1. Fork the package.
  2. Clone your forked repository.
git clone https://github.com/<githubusername>/go-client
  1. Next, move into the cloned directory.
cd go-client
  1. Switch to the feat/mainsail branch.
git checkout feat/mainsail
  1. Install the dependencies.
# The -t flag will also fetch dependencies related to tests
go get -t ./...
  1. Dependencies are now installed. You can now run the tests to see if everything is running as it should.
go test ./...