如何从PUT,DELETE方法golang(gin gonic)中检索数据

   $.ajax({
        type: "PUT",(or "DELETE")
        url: "example.com/controller",
        data: {
            ID: 10,
        },
        cache: false,
        success: function(data) {}

    });

here my ajax, and in my controller i want to get ID, but c.PostForm("ID") not work for delete(work for PUT), help me please!

Finally, i have to pass params to URI.(delete method)

It looks like you need to call the ParseForm method first - https://golang.org/pkg/net/http/#Request.ParseForm