Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 894 Bytes

DEVELOPMENT.md

File metadata and controls

32 lines (21 loc) · 894 Bytes

Development

  1. Clone the project to your preferred directory, using your preferred method.
  2. Download the module and accompanying developer tooling.
$ go mod download
  1. Make changes.
  2. Verify those changes.
$ make all

Compute

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