golang.org/x/pkgsite/internal/worker.serverError.status (field)
8 uses
golang.org/x/pkgsite/internal/worker (current package)
server.go#L734: status int // HTTP status code
server.go#L739: return fmt.Sprintf("%d (%s): %v", s.status, http.StatusText(s.status), s.err)
server.go#L755: serr = &serverError{status: http.StatusInternalServerError, err: err}
server.go#L757: if serr.status == http.StatusInternalServerError {
server.go#L761: log.Infof(ctx, "returning %d (%s) for error %v", serr.status, http.StatusText(serr.status), err)
server.go#L763: http.Error(w, serr.err.Error(), serr.status)
 |
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. |