Unittesting begins

This commit is contained in:
Bel LaPointe
2019-11-12 13:45:32 -07:00
commit 8c4bc81694
35 changed files with 3231 additions and 0 deletions

22
server/server.go Normal file
View File

@@ -0,0 +1,22 @@
package server
import (
"local/router"
"local/todo-server/server/ajax"
)
type Server struct {
*ajax.Ajax
*router.Router
}
func New() *Server {
ajax, err := ajax.New()
if err != nil {
panic(err)
}
return &Server{
Ajax: ajax,
Router: router.New(),
}
}