14 lines
169 B
Go
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)
|
|
}
|