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
- Host: GitHub
- URL: https://github.com/spinframework/spin-go-sdk
- Owner: spinframework
- License: apache-2.0
- Created: 2023-01-24T20:24:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-28T00:29:19.000Z (9 months ago)
- Last Synced: 2025-09-14T10:37:28.964Z (8 months ago)
- Language: C
- Size: 459 KB
- Stars: 11
- Watchers: 10
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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() {}
```