MCPcopy
hub / github.com/gin-gonic/gin / SetMeta

Method SetMeta

errors.go:49–52  ·  view source on GitHub ↗

SetMeta sets the error's meta data.

(data any)

Source from the content-addressed store, hash-verified

47
48// SetMeta sets the error's meta data.
49func (msg *Error) SetMeta(data any) *Error {
50 msg.Meta = data
51 return msg
52}
53
54// JSON creates a properly formatted JSON
55func (msg *Error) JSON() any {

Callers 2

TestErrorFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestErrorFunction · 0.76