README ¶ This just packages up some boilerplate I use in go web projects. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Http400(w http.ResponseWriter) func Http405(w http.ResponseWriter, allowed ...string) func Http500(ctx context.Context, w http.ResponseWriter, err error, logMsg string) func HttpXXX(w http.ResponseWriter, status int) type Server func (s *Server) Start(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Http400 ¶ func Http400(w http.ResponseWriter) func Http405 ¶ func Http405(w http.ResponseWriter, allowed ...string) func Http500 ¶ func Http500(ctx context.Context, w http.ResponseWriter, err error, logMsg string) func HttpXXX ¶ func HttpXXX(w http.ResponseWriter, status int) Types ¶ type Server ¶ type Server struct { ListenAddr string ProfileAddr string Mux *http.ServeMux Logger *slog.Logger // may be omitted safely } func (*Server) Start ¶ func (s *Server) Start(ctx context.Context) error Source Files ¶ View all Source files goweb.go log.go profile.go Click to show internal directories. Click to hide internal directories.