go

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2022 License: Apache-2.0

README

The (Tiny)Go SDK for Spin

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

func main() {
 // call the HandleRequest function
 spin_http.HandleRequest(func(w http.ResponseWriter, r *http.Request) {
  fmt.Fprintln(w, "Hello, Fermyon!")
 })
}

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL