Go SDK

Overview

The LockLLM Go SDK is currently in development. This native Go library will provide zero-dependency prompt security for Go applications with a clean, idiomatic API design. Built specifically for Go developers who value simplicity, performance, and reliability.

Coming Soon

The Go SDK is under active development. We are building a library that follows Go best practices and conventions, providing comprehensive prompt injection protection with minimal overhead and no external dependencies.

Planned Features

  • Zero Dependencies: Only uses Go standard library
  • Idiomatic Go: Follows Go conventions and best practices
  • Context Support: Full context.Context integration
  • Concurrent-Safe: Safe for use across goroutines
  • Error Handling: Proper Go error handling patterns
  • Middleware: HTTP middleware for common frameworks
  • Performance: Optimized for high-throughput applications
  • Simple API: Clean, minimal surface area

Planned Usage

The SDK will offer straightforward APIs for Go developers:

package main

import (
    "context"
    "github.com/lockllm/lockllm-go"
)

func main() {
    // Initialize client
    client := lockllm.New("your-api-key")

    // Scan a prompt
    result, err := client.Scan(context.Background(), userInput)
    if err != nil {
        // Handle error
    }

    if result.IsSafe {
        // Safe to use with LLM
        response, err := llm.Generate(userInput)
    }
}

Use Cases

Once available, the Go SDK will be ideal for:

  • HTTP APIs built with net/http or Gin
  • gRPC services with LLM integration
  • Command-line tools with AI features
  • Microservices using Go
  • High-performance backend services
  • Cloud-native applications on Kubernetes

Current Alternative

While the Go SDK is in development, Go developers can use the REST API or proxy integration for immediate prompt security needs. The REST API provides full functionality accessible from any Go application using the standard library HTTP client.

Get Notified

Sign up in the dashboard to receive notifications when the Go SDK launches. Documentation for the Go SDK is coming soon with updates on development progress and planned release timeline.