client := &http.Client{} req, _ := http.NewRequest("POST", "http://localhost", bytes.NewBuffer([]byte(`test`))) resp, err := client.Do(req) if err != nil { resp, err = client.Do(req) } client := &http.Client{} req, _ := http.NewRequest("POST", "http://localhost", bytes.NewBuffer([]byte(`test`))) resp, err := client.Do(req) if err != nil { req, _ := http.NewRequest("POST", "http://localhost", bytes