2022-10-22 18:01:55 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-11-19 10:41:10 +00:00
|
|
|
"log"
|
2022-11-19 12:25:00 +00:00
|
|
|
"mchess_server/server"
|
2022-11-19 10:41:10 +00:00
|
|
|
"net/http"
|
2022-10-22 18:01:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-11-19 10:41:10 +00:00
|
|
|
http.HandleFunc("/", server.SocketHandler)
|
|
|
|
|
|
|
|
err := http.ListenAndServe("localhost:8080", nil)
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
log.Println("We ended")
|
2022-10-22 18:01:55 +00:00
|
|
|
}
|