Prerequisites
- Go >= 1.7.x
Installation
To install the stable release
You can install the stable release using the go command.To install a beta release
Note: You can see the full list of Go SDK releases on GitHub.-
In terminal, create a new folder called test-plivo-beta.
Note: Make sure the new folder is outside your GOPATH.
- Change your directory to the new folder.
-
Using the following command, initialize a new module:
You’ll see the following return:
-
Next, create a new Go file with this code:
Replace the auth placeholders with your authentication credentials from the Plivo console. Replace the phlo_id placeholder with your PHLO ID from the Plivo console.
-
Run the go build command to build the packages:
A file named go.mod will be generated. -
Edit go.mod using the command vim go.mod and change the plivo-go version to the beta version you want to download.
For example, changeto - Save the go.mod file.
- Run go build to build the packages. go.mod will be updated with the beta version.