Skip to content

hybridgroup/spin-go-sdk

 
 

Repository files navigation

The (Tiny)Go SDK for Spin

This package contains an SDK that facilitates building Spin components in (Tiny)Go. It allows building HTTP components that target the Spin executor.

import (
	"fmt"
	spinhttp "github.com/fermyon/spin-go-sdk/http"
)

func init() {
    // call the Handle function
    spinhttp.Handle(func(w http.ResponseWriter, r *http.Request) {
        fmt.Fprintln(w, "Hello, Fermyon!")
    })
}

func main() {}

Releases

No releases published

Packages

No packages published

Languages

  • C 55.6%
  • Go 41.4%
  • Makefile 3.0%