pkg reorg
This commit is contained in:
+3
-3
@@ -1,13 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"go.digitalcircle.com.br/open/simplemq/lib/smqsvr"
|
||||
"net/http"
|
||||
"simplemq/lib/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/ws", server.Serve)
|
||||
http.HandleFunc("/stats", server.Stats)
|
||||
http.HandleFunc("/ws", smqsvr.Serve)
|
||||
http.HandleFunc("/stats", smqsvr.Stats)
|
||||
err := http.ListenAndServe(":8080", nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user