Skip to content

Commit 48004dd

Browse files
authored
Merge pull request #85 from maxp-edcast/patch-1
Make it more clear how url.Values gets imported
2 parents dc8d13c + c4ebd39 commit 48004dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/content/guide/testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func TestGetUser(t *testing.T) {
127127
### Using Form Payload
128128

129129
```go
130+
// import "net/url"
130131
f := make(url.Values)
131132
f.Set("name", "Jon Snow")
132133
f.Set("email", "[email protected]")
@@ -144,6 +145,7 @@ c.SetParamValues("1", "[email protected]")
144145
### Setting Query Params
145146

146147
```go
148+
// import "net/url"
147149
q := make(url.Values)
148150
q.Set("email", "[email protected]")
149151
req := httptest.NewRequest(http.MethodPost, "/?"+q.Encode(), nil)

0 commit comments

Comments
 (0)