更新gitignore
This commit is contained in:
parent
b3255a06ac
commit
13195ffe32
18
.gitignore
vendored
Normal file
18
.gitignore
vendored
Normal file
@ -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
|
@ -169,7 +169,7 @@ ftm.Println( "error occured", err)
|
||||
fmt.Println(res)
|
||||
}
|
||||
```
|
||||
#### 其它请求
|
||||
#### 其它类型的请求
|
||||
后续支持...敬请期待
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user