go-webpagetest
go-webpagetest is a simple library to interface with the WebPageTest RestAPI
Features
-
Tests
- create tests and submit them to a webpagetest instance
- poll tests as they run and have the results automatically unmarshalled to the Test struct
- retrieve historic test results from the API by Request ID
-
Locations
- list available test locations
- get the default location tests are run
Install
You can install this library with go get
go get github.com/ajcrowe/go-webpagetest
Then import
import (
"github.com/ajcrowe/go-webpagetest"
)
Examples
You can find some examples in the examples
folder for usage