simplemq/cmd/server/main.go

16 lines
231 B
Go
Raw Normal View History

2021-11-15 23:06:05 +00:00
package main
import (
"net/http"
"simplemq/lib/server"
)
func main() {
2021-11-15 23:23:10 +00:00
http.HandleFunc("/ws", server.Serve)
http.HandleFunc("/stats", server.Stats)
2021-11-15 23:06:05 +00:00
err := http.ListenAndServe(":8080", nil)
if err != nil {
panic(err)
}
}