From 2da8c2ca47702aeee4b563edc5c97909f42f66b2 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 26 Oct 2017 21:13:48 +0900 Subject: [PATCH] ing --- server.go | 7 +++++++ 1 file changed, 7 insertions(+) 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