package util import ( "fmt" "testing" ) func Test_PostWithFormData(t *testing.T){ postData := make(map[string]string) postData["formData"] = "{}" data := PostWithFormData("POST", "http://120.48.30.31:88/grfd-cow/api/tmr/addOtherDevice", &postData) fmt.Println(data) }