net/test_client/main.go

16 lines
205 B
Go
Raw Normal View History

2024-02-03 16:26:09 +00:00
package main
import (
"fmt"
"git.3crabs.ru/VLADIMIR/net/http"
)
func main() {
r, err := http.Do("GET", "127.0.0.1:8081")
if err != nil {
panic(err)
}
fmt.Println(r.StatusCode, string(r.Body))
}