You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
264 B

package openmensa
import (
"io/ioutil"
"net/http"
)
func get(url string) (response []byte, err error) {
resp, err := http.Get(url)
if err != nil {
return
}
respData, err := ioutil.ReadAll(resp.Body)
if err != nil {
return
}
return respData, err
}