40 lines
656 B
Markdown
Raw Normal View History

2025-10-14 14:16:15 +02:00
# Example Codex Go Bindings
This repository demonstrates how to integrate the [Codex Go bindings](https://github.com/codex-storage/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`.
2025-10-14 14:17:44 +02:00
## Usage
### Get the Go dependency
2025-10-14 14:16:15 +02:00
```sh
go get
```
2025-10-14 14:17:44 +02:00
### Fetch the artifacts
2025-10-14 14:16:15 +02:00
```sh
make fetch
```
The default `OS` is `linux` and the default `ARCH` is `amd64`.
You can update them like this:
```sh
OS="macos" ARCH="arm64" make fetch
```
By default, the last release will be downloaded and extracted to libs folder.
2025-10-14 14:16:15 +02:00
2025-10-14 14:17:44 +02:00
### Build
2025-10-14 14:16:15 +02:00
```sh
make build
```
2025-10-14 14:17:44 +02:00
### Run
2025-10-14 14:16:15 +02:00
```sh
./example
```