mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-24 02:16:55 +08:00
Minor formatting change
This commit is contained in:
parent
d502acea3b
commit
da90424caf
1 changed files with 1 additions and 3 deletions
|
|
@ -15,9 +15,7 @@ func Handler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(http.StatusCreated)
|
w.WriteHeader(http.StatusCreated)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c DurationClient) GetDuration(url string,
|
func (c DurationClient) GetDuration(url string, lat1, lng1, lat2, lng2 float64) (time.Duration, error) {
|
||||||
lat1, lng1, lat2, lng2 float64) (
|
|
||||||
time.Duration, error) {
|
|
||||||
resp, err := c.client.Post(
|
resp, err := c.client.Post(
|
||||||
url, "application/json",
|
url, "application/json",
|
||||||
buildRequestBody(lat1, lng1, lat2, lng2),
|
buildRequestBody(lat1, lng1, lat2, lng2),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue