func NewServer() Server {
	mux := http.NewServeMux()

	mux.HandleFunc("/debug/pprof/", pprof.Index)
	mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
	mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
	mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
	mux.HandleFunc("/debug/pprof/trace", pprof.Trace)

	return Server{srv: &http.Server{Handler: mux}}
}
// NewServer creates new HTTP server for debugging.
NewServer creates new HTTP server for debugging.
// NewServer creates new HTTP server for debugging .
func NewServer() Server {
	mux := http.NewServeMux()
	mux.HandleFunc("/debug/pprof/", pprof.Index)
	mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
	mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
	mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
	mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
	return Server{srv: &http.Server{Handler: mux}}
}
func NewServer ( ) Server { mux := http . NewServeMux ( ) mux . HandleFunc ( " " , pprof . Index ) mux . HandleFunc ( " " , pprof . Cmdline ) mux . HandleFunc ( " " , pprof . Profile ) mux . HandleFunc ( " " , pprof . Symbol ) mux . HandleFunc ( " " , pprof . Trace ) return Server { srv : & http . Server { Handler : mux } } }
NewServer creates new HTTP server for debugging.
NewServer creates new HTTP server for debugging .