mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +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)
|
||||
}
|
||||
|
||||
func (c DurationClient) GetDuration(url string,
|
||||
lat1, lng1, lat2, lng2 float64) (
|
||||
time.Duration, error) {
|
||||
func (c DurationClient) GetDuration(url string, lat1, lng1, lat2, lng2 float64) (time.Duration, error) {
|
||||
resp, err := c.client.Post(
|
||||
url, "application/json",
|
||||
buildRequestBody(lat1, lng1, lat2, lng2),
|
||||
|
|
|
|||
Loading…
Reference in a new issue