func patchSecure(instance *serviceclient.ServiceClient) (*http.Response, error) { jsonString := `{"text":"fake twitter json string"}` reader := strings.NewReader(jsonString) return instance.PatchSecure("/bla/blubb", "application/json", reader) }