2026-03-06 10:21:19 +04:00
# Example Logos Storage Go Bindings
2025-10-14 14:16:15 +02:00
2026-03-06 10:21:19 +04:00
This repository demonstrates how to integrate the [Logos Storage Go bindings ](https://github.com/logos-storage/logos-storage-go-bindings/ ) into a Go project.
2025-10-14 14:16:15 +02:00
2026-03-06 10:21:19 +04:00
The project starts a Logos Storage node, uploads and downloads some data and then stops the node.
2025-10-14 14:16:15 +02:00
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
```
2025-10-15 06:54:58 +02:00
The default `OS` is `linux` and the default `ARCH` is `amd64` .
2025-10-16 07:23:38 +02:00
You can provide them as environment variables:
2025-10-15 06:54:58 +02:00
```sh
2026-03-06 10:32:39 +04:00
OS="darwin" ARCH="arm64" make fetch
2025-10-15 06:54:58 +02:00
```
2025-10-16 07:23:38 +02:00
You can change the version by providing it as environment variables:
```sh
2026-03-06 10:21:19 +04:00
VERSION="v0.3.2" make fetch
2025-10-16 07:23:38 +02:00
```
The default folder is `libs` , you can change it by editing the `Makefile` .
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
2025-10-16 07:23:38 +02:00
make run
```
### Windows
To run on Windows, you need to include the `libs` folder (or your custom folder if you changed it) into the path:
```powershell
$env:PATH = "$PWD\libs;" + $env:PATH
.\example.exe
2025-10-14 14:16:15 +02:00
```