Skip to content

operandinc/go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operand Go SDK

The official Go SDK for the Operand API. Read our API documentation here: https://docs.operand.ai. If you have any questions or feedback, please feel free to reach out to us via email or join our Discord.

Installation

go get -u github.com/operandinc/go-sdk

Usage

client := operand.NewClient(os.Getenv("OPERAND_API_KEY"))
if _, err := client.CreateFile(
    context.Background(),
    "go.txt",
    nil,
    bytes.NewReader([]byte("Hello, World!")),
    nil,
); err != nil {
    // handle the error
}