An open API service indexing awesome lists of open source software.

https://github.com/spinframework/spin-go-sdk

Spin Go SDK
https://github.com/spinframework/spin-go-sdk

Last synced: 5 months ago
JSON representation

Spin Go SDK

Awesome Lists containing this project

README

          

# 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.

```go
import (
"fmt"
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
)

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

func main() {}
```