mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-06 21:52:28 +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) {
|
||||
url := "http://api.postcodes.io/postcodes"
|
||||
type Postcode struct {
|
||||
Postcodes []string `json:"postcodes"`
|
||||
Postcodes []string `json:"postcodes"`
|
||||
}
|
||||
postcode := Postcode{[]string{"OX49 5NU"}}
|
||||
bodyParams, _ := json.Marshal(postcode)
|
||||
|
||||
Reference in New Issue
Block a user