mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-03 22:13:07 +00:00
35 lines
641 B
Markdown
35 lines
641 B
Markdown
|
|
# 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`.
|
||
|
|
|
||
|
|
## Get the Go dependency
|
||
|
|
|
||
|
|
```sh
|
||
|
|
go get
|
||
|
|
```
|
||
|
|
|
||
|
|
## Fetch the artifacts
|
||
|
|
|
||
|
|
```sh
|
||
|
|
# Adapt for your OS
|
||
|
|
OS := "linux"
|
||
|
|
ARCH := "amd64"
|
||
|
|
make fetch
|
||
|
|
```
|
||
|
|
|
||
|
|
By default, the last release will be downloaded and extracted to libs folder. You can change the `Makefile`
|
||
|
|
to specify another folder or download a specific version.
|
||
|
|
|
||
|
|
## Build
|
||
|
|
|
||
|
|
```sh
|
||
|
|
make build
|
||
|
|
```
|
||
|
|
|
||
|
|
## Run
|
||
|
|
|
||
|
|
```sh
|
||
|
|
./example
|
||
|
|
```
|