Slide 22
Slide 22 text
#k8sjp
package main
import (
wapc "github.com/wapc/wapc-guest-tinygo"
)
func main() {
wapc.RegisterFunctions(wapc.Functions{
"validate_settings": validateSettings,
"validate": validate,
})
}
func validateSettings(payload []byte) ([]byte, error) { ... }
func validate(payload []byte) ([]byte, error) { ... }