mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-15 02:02:27 +08:00
fmt: go fmt for request_test.go
This commit is contained in:
@@ -34,7 +34,7 @@ func TestHttpGet(t *testing.T) {
|
|||||||
func TestHttpPost(t *testing.T) {
|
func TestHttpPost(t *testing.T) {
|
||||||
url := "http://api.postcodes.io/postcodes"
|
url := "http://api.postcodes.io/postcodes"
|
||||||
type Postcode struct {
|
type Postcode struct {
|
||||||
Postcodes []string `json:"postcodes"`
|
Postcodes []string `json:"postcodes"`
|
||||||
}
|
}
|
||||||
postcode := Postcode{[]string{"OX49 5NU"}}
|
postcode := Postcode{[]string{"OX49 5NU"}}
|
||||||
bodyParams, _ := json.Marshal(postcode)
|
bodyParams, _ := json.Marshal(postcode)
|
||||||
|
|||||||
Reference in New Issue
Block a user