Files
pugnack c757127453
All checks were successful
coverage / build (push) Successful in 2m19s
test / test (push) Successful in 2m27s
integrate request builder into HTTP client for googleapis support (#159)
2025-10-03 08:39:44 +03:00

15 lines
238 B
Go

package status
// Error is a thin wrapper around Status that implements the error interface.
type Error struct {
s *Status
}
func (e *Error) Error() string {
return e.s.String()
}
func (e *Error) HTTPStatus() *Status {
return e.s
}