Added an http server

This commit is contained in:
sm
2016-02-08 00:15:22 -08:00
parent 95b282ea42
commit b3585cbc96
3 changed files with 84 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
package ysv
import "net/http"
type Server struct {
}
func NewServer(sm *http.ServeMux) *Server {
s := &Server{}
addRoutes(sm, s)
return s
}
func addRoutes(sm *http.ServeMux, s *Server) {
}