golang.org/x/pkgsite/internal/frontend.Server.renderErrorPage (method)
4 uses
golang.org/x/pkgsite/internal/frontend (current package)
server.go#L101: errorPageBytes, err := s.renderErrorPage(context.Background(), http.StatusInternalServerError, "error.tmpl", nil)
server.go#L315: buf, err := s.renderErrorPage(context.Background(), status, "error.tmpl", nil)
server.go#L410: buf, err := s.renderErrorPage(r.Context(), status, template, page)
server.go#L424: func (s *Server) renderErrorPage(ctx context.Context, status int, templateName string, page *errorPage) ([]byte, error) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |