go get github.com/chonthu/go-edgegrid
package main
import (
"log"
"github.com/chonthu/go-edgegrid"
)
func main() {
api := edgegrid.NewFromIni(".edgerc")
resp, err := api.Send("POST", "/ccu/v3/invalidate/url/production", "{ \"objects\" : [ \"http://example.com\" ]}")
if err != nil {
log.Println(err)
}
log.Panicln(resp)
}
Nithin Meppurathu - Twitter: @meppurathu