// PatchJSON performs a patch call on specific url with the given object.
PatchJSON performs a patch call on specific url with the given object.
// PatchJSON performs a patch call on specific url with the given object .
func PatchJSON(url string, object interface{}) error {
	b := new(bytes.Buffer)
	json.NewEncoder(b).Encode(object)
	request, err := http.NewRequest("PATCH", fmt.Sprintf("%v%v", rootURL, url), b)
	if err != nil {
		return err
	}
	request.Header.Set("Content-Type", "application/json")
	_, err = httpClient.Do(request)
	if err != nil {
		return err
	}
	return nil
}
func PatchJSON ( url string , object interface { } ) error { b := new ( bytes . Buffer ) json . NewEncoder ( b ) . Encode ( object ) request , err := http . NewRequest ( " " , fmt . Sprintf ( " " , rootURL , url ) , b ) if err != nil { return err } request . Header . Set ( " " , " " ) _ , err = httpClient . Do ( request ) if err != nil { return err } return nil }
PatchJSON performs a patch call on specific url with the given object.
PatchJSON performs a patch call on specific url with the given object .