Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Status ¶
type Status struct { // The status code, which should be an enum value of [codes.Code][codes.Code]. Code codes.Code `json:"code"` // A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. Message string `json:"message"` // A list of messages that carry the error details. There is a common set of // message types for APIs to use. Details []any `json:"details"` }
Status https://cloud.google.com/apis/design/errors It is immutable and should be created with New, Newf, or FromProto.
func (*Status) GetMessage ¶
GetMessage returns the message contained in s.
func (*Status) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.