Skip to content

Instantly share code, notes, and snippets.

@ChunkRadius
ChunkRadius / example.go
Last active February 6, 2017 19:11
Golang WHMCS example
import (
"os"
"github.com/bradberger/gowhmcs"
)
func main() {
api, err := whmcs.NewAPI(os.Getenv("WHMCS_ENDPOINT"), os.Getenv("WHMCS_USER"), os.Getenv("WHMCS_PASSWORD"))
if err != nil {
@ChunkRadius
ChunkRadius / update.bash
Created May 19, 2017 11:13
Update Go to latest version - Cloud9
#!/bin/bash
sudo rm -rf /opt/go
wget -qO- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | sudo tar xz -C /opt