Categorygithub.com/flyingdice/whack-tinygo-guest-sdk
repository
0.0.0-20220116165542-bb4f7f0a1eb5
Repository: https://github.com/flyingdice/whack-tinygo-guest-sdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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