Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 637 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 637 Bytes

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
}