gobuch/microservices/httpsserver/main.go
2020-08-21 06:26:40 +02:00

20 lines
307 B
Go

package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello World")
})
certFile := "./certs/test.example.crt"
keyFile := "./certs/test.example.key"
http.ListenAndServeTLS(":8443", certFile, keyFile, nil)
}