Skip to content

agntcy/slim-bindings-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLIM Go Bindings

Get started with SLIM Go bindings in just a few minutes.

Prerequisites

  • Go 1.22 or later
  • Internet connection to download dependencies

Quick Start

1. Create a New Project

mkdir -p go-app
cd go-app
go mod init go-app

2. Install SLIM Go Bindings

go get github.com/agntcy/slim-bindings-go

3. Run the Setup Tool

The 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-setup

4. Create Your First SLIM Application

Create 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...
}

5. Run Your Application

go run main.go

You should see:

🚀 SLIM Go Bindings Example
============================
✅ Crypto initialized

Important Notes

  • Setup is one-time: You only need to run slim-bindings-setup once
  • Native dependencies: The bindings use native libraries under the hood via CGO, so a C compiler is required

About

go get github.com/agntcy/slim-bindings-go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •