- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleListenAndServe (0.21 sec)
-
src/net/http/example_test.go
log.Printf("About to listen on 8443. Go to https://127.0.0.1:8443/") err := http.ListenAndServeTLS(":8443", "cert.pem", "key.pem", nil) log.Fatal(err) } func ExampleListenAndServe() { // Hello world, the web server helloHandler := func(w http.ResponseWriter, req *http.Request) { io.WriteString(w, "Hello, world!\n") } http.HandleFunc("/hello", helloHandler)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 19 16:12:45 UTC 2021 - 5.4K bytes - Viewed (0)