(url string)
| 84 | } |
| 85 | |
| 86 | func GetRequest(url string) (*http.Response, error) { |
| 87 | const timeout = 1 * time.Second |
| 88 | |
| 89 | client := &http.Client{Timeout: timeout} |
| 90 | return client.Get(url) |
| 91 | } |
| 92 | |
| 93 | func PostRequest(url string) (*http.Response, error) { |
| 94 | const timeout = 1 * time.Second |