mchess-server/main.go

24 lines
336 B
Go

package main
import (
"log"
"mchess_server/server"
"net/http"
)
func main() {
http.HandleFunc("/", server.SocketHandler)
err := http.ListenAndServeTLS("wogehtspam.:8080", "path_to_cert_file", "path_to_key_file", nil)
if err != nil {
log.Println(err)
}
log.Println("We ended")
}
func HandleFuncWrapper(a func()) {
a()
}