Skip to content

flyingdice/whack-tinygo-guest-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whack TinyGo Guest SDK

Whack guest SDK implementation for TinyGo.

Getting Started

go get "github.com/flyingdice/whack-tinygo-guest-sdk"

Follow the simple snippet below or the examples code for a more in-depth look.

package main

import (
	"github.com/flyingdice/whack-tinygo-guest-sdk/whack"
)

type helloApp struct{}

func (a *helloApp) Main(req *whack.Request) *whack.Response {
	return whack.Success([]byte("Hello World"))
}

func main() {
	whack.Register(&helloApp{})
}

Usage

Run make help to see list of available commands.

❯ make help
modules                        Tidy up and vendor go modules.
help                           Print Makefile usage.

License

AGPL v3

About

Whack guest SDK for TinyGo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published