# Module SDK for Go This module provides glue code to implement a buildr WASI module easily and quickly. To implement a new buildr WASI module: 1. Create a new Go module 1. Reference this SDK (`go get -u code.icb4dc0.de/buildr/wasi-module-sdk-go`) 1. create a `main.go` with an **empty** `main()` function 1. implement the `sdk.Module` interface for your module 1. implement an `init()` function that registers your module and the SDK's type registry 1. compile the module e.g. with tinygo See also the [examples](./examples) directory to get started. ## Dependencies ### easyjson Right now the SDK depends on [easyjson](https://github.com/mailru/easyjson) to unmarshal the modules state as defined in the HCL configuration. The main reason for this is that the reflection support in TinyGo is limited and for instance `encoding/json` heavily depends on reflection. The SDK itself uses protobuf (vtprotobuf) to exchange data with the host without reflection but this is not generic enough to support every possibility of module configuration (e.g. `map` would require extra encoding/decoding steps, same for `map