656 B

Example Codex Go Bindings

This repository demonstrates how to integrate the Codex Go bindings into a Go project.

The project starts a Codex node, uploads and downloads some data, and can be stopped with Ctrl+C.

Usage

Get the Go dependency

go get 

Fetch the artifacts

make fetch

The default OS is linux and the default ARCH is amd64. You can update them like this:

OS="macos" ARCH="arm64" make fetch

By default, the last release will be downloaded and extracted to libs folder.

Build

make build

Run

./example