A Go client for the Salesforce REST API.
go get github.com/davidji99/force-go
package main
import (
"fmt"
"github.com/davidji99/force-go/force"
)
func main() {
client, err := force.New(force.OAuthCred(
"OAUTH_USER",
"OAUTH_PASSWORD",
"OAUTH_CLIENT_ID",
"OAUTH_CLIENT_SECRET",
))
if err != nil {
panic(err)
}
c, _, describeErr := client.Describe("Case")
if describeErr != nil {
panic(describeErr)
}
fmt.Println(c.GetName())
}