diff --git a/server.go b/server.go index 88e3bde..3e6399d 100644 --- a/server.go +++ b/server.go @@ -17,6 +17,13 @@ type Server interface { Serve() error } +func NewServer(sh ServerHandler) Server { + s := &server{ + serverHandler: sh, + } + return s +} + type server struct { serverHandler ServerHandler