Mensa-API/api/fetch/fetch.go
2024-03-20 16:28:10 +01:00

15 lines
187 B
Go

package fetch
import (
"net/http"
)
func Fetch(url string) (*http.Response, error) {
u, err := url.ParseRequestURI(url)
if err != nil {
return nil, err
}
return http.Get(url)
}