Get started with SLIM Go bindings in just a few minutes.
- Go 1.22 or later
- Internet connection to download dependencies
mkdir -p go-app
cd go-app
go mod init go-appgo get github.com/agntcy/slim-bindings-goThe SLIM bindings require some additional setup to install the bindings libs. Run the setup command:
go run github.com/agntcy/slim-bindings-go/cmd/slim-bindings-setupCreate a main.go file with the following content:
package main
import (
"fmt"
slim "github.com/agntcy/slim-bindings-go"
)
func main() {
fmt.Println("🚀 SLIM Go Bindings Example")
fmt.Println("============================")
// Initialize crypto provider (required before any operations)
slim.InitializeCryptoProvider()
fmt.Println("✅ Crypto initialized")
// Your SLIM code here...
}go run main.goYou should see:
🚀 SLIM Go Bindings Example
============================
✅ Crypto initialized
- Setup is one-time: You only need to run
slim-bindings-setuponce - Native dependencies: The bindings use native libraries under the hood via CGO, so a C compiler is required