func DownloadObo(name string) (*http.Response, error) { client := &http.Client{} req, err := http.NewRequest("GET", fmt.Sprintf("%s/%s", chadoURL, name), nil) if err != nil { return nil, err } resp, err := client.Do(req) if err != nil { return nil, err } return resp, nil }
func downloadFromURL(url string) (*http.Response, error) { client := &http.Client{} req, err := http.NewRequest("GET", url, nil) if err != nil { return nil, err } resp, err := client.Do(req) if err != nil { return nil, err } return resp, err }