mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
20 lines
307 B
Go
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)
|
|
|
|
}
|