- Clone the project to your preferred directory, using your preferred method.
- Download the module and accompanying developer tooling.
$ go mod download
- Make changes.
- Verify those changes.
$ make all
Support for the Fastly Compute platform is still in development.
There are known issues with the use of Go's reflect
package and for TinyGo support to mature.
NOTE: The go-fastly API client uses github.com/mitchellh/mapstructure
If using standard Go (not TinyGo) then a usable client can be achieved with:
client, err := fastly.NewClient("FASTLY_API_KEY")
client.HTTPClient.Transport = fsthttp.NewTransport("fastly")
This presumes you have a backend named fastly
pointing to https://api.fastly.com