mchess-server/main.go

19 lines
246 B
Go

package main
import (
"log"
"mchess_server/server"
"net/http"
)
func main() {
http.HandleFunc("/", server.SocketHandler)
err := http.ListenAndServe("localhost:8080", nil)
if err != nil {
log.Println(err)
}
log.Println("We ended")
}