Go Cheatsheet - Send HTTP Request
HTTP Request
GET
Simple GET Request
url := "http://ip-api.com/json/129.49.234.203"
resp, err := http.Get(url)
Use Client to Send GET
Use http.Client is the most flexible way to send http request:
Build a Client object
Build a Request object, then w...
hn.0xbf.me1 min read