Getting Started with Go Core Runtime
Introduction
Core library for Apimatic's Go SDK hosted on github.com/apimatic/go-core-runtime
Requirement
Go v1.18
Install the Package
Run the following command to install the package and automatically add the package to your module or .mod file:
go get "github.com/apimatic/go-core-runtime"
Or add it to the go.mod file manually as given below:
require "github.com/apimatic/go-core-runtime" v0.0.x
And run the following command to install the package automatically:
go get ./...
Package Details
HTTPS
File Name |
Description |
Call Builder |
Provides the logic related to the HTTPs request. Includes building and making the request call. |
File Wrapper |
Provides a wrapper for the file parameter to use in the HTTPs calls. |
Form Data |
Provides handling of form parameters in the request. |
HTTP Client |
Provides an interface for the HTTP Client to use for making the calls. |
HTTP Configuration |
Provides configurations for the HTTP calls. |
HTTP Context |
Provides a struct that holds request and corresponding response instances. |
HTTP Headers |
Provides handling for headers to send with the request. |
Interceptors |
Provides handling to intercept requests. |
API Error
File Name |
Description |
API Error |
Provides the error struct that is used in the endpoint calls. |
Utilities
File Name |
Description |
API Helper |
Provides helper methods for making the HTTP calls. |
Each package contains its test files and code coverage reports as well.