
The highest tagged major version is
v2.
module
Version:
v0.7.1
Opens a new window with list of versions in this module.
Published: Dec 19, 2022
License: Apache-2.0
Opens a new window with license information.
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.
import (
"fmt"
spinhttp "github.com/fermyon/spin/sdk/go/http"
)
func init() {
// call the Handle function
spinhttp.Handle(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello, Fermyon!")
})
}
func main() {}
Directories
¶
|
|
Package http contains the helper functions for writing Spin HTTP components in TinyGo, as well as for sending outbound HTTP requests.
|
Package http contains the helper functions for writing Spin HTTP components in TinyGo, as well as for sending outbound HTTP requests. |
|
|
Click to show internal directories.
Click to hide internal directories.