I tried working with Apiary and made a universal template to send JSON to mock server and have this code:
package main import ( \"encoding/json\" \"
you can just use post to post your json.
post
values := map[string]string{"username": username, "password": password} jsonValue, _ := json.Marshal(values) resp, err := http.Post(authAuthenticatorUrl, "application/json", bytes.NewBuffer(jsonValue))