The core package provides a centralized and reusable implementation for making HTTP requests and handling API responses for Coinbase Go SDKs. It includes features for setting custom headers, managing credentials, and providing structured error handling.
The core package is already integrated with the Coinbase Prime and Coinbase International Exchange (INTX) Go SDKs. To manually install the core package, use the following command:
go get github.com/coinbase-samples/core-go
To use the core package, import it into your project:
import "github.com/coinbase-samples/core-go"
Then, create a new instance of the Client
struct:
client := core.NewClient()