// Set up a server to handle http traffic
Set up a server to handle http traffic
// Set up a server to handle http traffic
func NewHttpServer(host string, port string) *http.Server {
	return &http.Server{
		Handler:      NewRouter(),
		Addr:         host + ":" + port,
		WriteTimeout: 15 * time.Second,
		ReadTimeout:  15 * time.Second,
	}
}
func NewHttpServer ( host string , port string ) * http . Server { return & http . Server { Handler : NewRouter ( ) , Addr : host + " " + port , WriteTimeout : 15 * time . Second , ReadTimeout : 15 * time . Second , } }
Set up a server to handle http traffic
Set up a server to handle http traffic