diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cdd78af --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# ---> Go +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +.idea \ No newline at end of file diff --git a/README.MD b/README.MD index e2017d6..2d75351 100644 --- a/README.MD +++ b/README.MD @@ -169,7 +169,7 @@ ftm.Println( "error occured", err) fmt.Println(res) } ``` -#### 其它请求 +#### 其它类型的请求 后续支持...敬请期待 diff --git a/test/simpleRequest_test.go b/test/simpleRequest_test.go index 342905d..dba4ccc 100644 --- a/test/simpleRequest_test.go +++ b/test/simpleRequest_test.go @@ -25,13 +25,11 @@ func TestRequest(t *testing.T) { //设置params r.QueryParams().Set("user", "dorlolo") //支持一次性添加,不会覆盖上面user - pamarsBulid := make(map[string]interface{}) - pamarsBulid["passwd"] = "123456" - pamarsBulid["action"] = "login" - - paramsBuild2 := map[string]interface{}{ + pamarsBulid := map[string]interface{}{ "passwd": "123456", + "action": "login", } + r.QueryParams().Sets(pamarsBulid) //--添加body