Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Now = time.Now
Now returns the current time
Functions ¶
Types ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status represents an HTTP status code, message, and details. It is immutable and should be created with New, or Newf.
func Pack ¶
Pack returns a Status representing err if it was produced from an `*errors.Error` struct.
func (*Status) HTTPStatus ¶
func (se *Status) HTTPStatus() *Status
Click to show internal directories.
Click to hide internal directories.