-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Summary
Add Go SDK support for BoxLite, enabling Go applications to embed BoxLite runtime.
Motivation
- Go is widely used for infrastructure and DevOps tools
- Many AI agent frameworks are written in Go
- Listed as "Coming soon" in README
Proposed API
package main
import (
"context"
"fmt"
"github.com/boxlite-labs/boxlite-go"
)
func main() {
runtime, _ := boxlite.NewRuntime(boxlite.DefaultOptions())
defer runtime.Close()
box, _ := runtime.Create(context.Background(), boxlite.BoxOptions{
Image: "alpine:latest",
})
defer box.Destroy(context.Background())
result, _ := box.Exec(context.Background(), "echo", "Hello from Go!")
fmt.Println(result.Stdout)
}Tasks
- Design Go API (idiomatic Go patterns)
- Create FFI bindings to Rust core
- Implement streaming stdout/stderr
- Add context.Context support for cancellation
- Write documentation and examples
- Publish to pkg.go.dev
Metadata
Metadata
Assignees
Labels
No labels