func (s *Server) Serve() { if !flag.Parsed() { flag.Parse() } s.Init() log.Fatal(http.ListenAndServe(fmt.Sprintf(":%v", environment.Port()), http.HandlerFunc(s.PreServe))) }
func serverPath(s *service.Service) string { return fmt.Sprintf("%v/servers/%v.%v", basePath(s), environment.Host(), environment.Port()) }