Implement simple client

This commit is contained in:
Bel LaPointe
2019-03-14 15:20:23 -06:00
parent 1f679f4c06
commit c5b6ad08e4
5 changed files with 152 additions and 5 deletions

View File

@@ -7,14 +7,14 @@ import (
)
type Server struct {
port string
Port string
router *router.Router
}
func New() *Server {
config := config.Values()
return &Server{
port: ":" + strings.TrimPrefix(config.Port, ":"),
Port: ":" + strings.TrimPrefix(config.Port, ":"),
router: router.New(),
}
}