shad-go/lectures/06-http/simpleget/simpleget.go
2020-04-02 11:42:31 +00:00

14 lines
169 B
Go

package main
import (
"fmt"
"net/http"
)
func main() {
resp, err := http.Get("https://golang.org")
if err != nil {
panic(err)
}
fmt.Println(resp.StatusCode)
}