Last active
March 25, 2024 00:27
-
-
Save narenaryan/bec9661e685cfc6c8a43bf9f5ff2d120 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
resp, err := http.Get("https://httpbin.org/get") | |
if err != nil { | |
fmt.Println(err) | |
return | |
} | |
fmt.Println(resp.StatusCode) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment