Documentation
¶
Index ¶
- func Code(err error) codes.Code
- func ErrWithCaller(err error) error
- func GetCaller(skip int) uintptr
- func GetFilePathTailPart(filePath string, count int) string
- func GetFilePosition(pc uintptr) string
- func GetPanicReportEvent(skip int, r any) string
- func GetStackFrame(pc uintptr) runtime.Frame
- func GetStackPosition(skip int) string
- func In[T comparable](val T, set1 T, sets ...T) bool
- func PanicIfErr(c context.Context, err error, attrs ...slog.Attr)
- func ToEventString(s string, maxLen int) string
- type Composer
- type Status
- func (s *Status) Error() string
- func (s *Status) GetCode() codes.Code
- func (s *Status) GetEvent() string
- func (s *Status) GetMsg() string
- func (s *Status) MarshalJSONV2(encoder *jsontext.Encoder, opts jsontext.Options) error
- func (s *Status) SetErrEvent(err error) *Status
- func (s *Status) SetEvent(event string) *Status
- func (s *Status) SetMsg(msg string, args ...any) *Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrWithCaller ¶
func GetFilePathTailPart ¶
func GetFilePosition ¶
func GetPanicReportEvent ¶
GetPanicReportEvent only call this function in recover code
func GetStackFrame ¶
func GetStackPosition ¶
func In ¶
func In[T comparable](val T, set1 T, sets ...T) bool
func ToEventString ¶
Types ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) MarshalJSONV2 ¶
func (*Status) SetErrEvent ¶
Click to show internal directories.
Click to hide internal directories.