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

Method MarshalJSON

errors.go:77–79  ·  errors.go::Error.MarshalJSON

MarshalJSON implements the json.Marshaller interface.

()

Source from the content-addressed store, hash-verified

75
76// MarshalJSON implements the json.Marshaller interface.
77func (msg *Error) MarshalJSON() ([]byte, error) {
78 return json.API.Marshal(msg.JSON())
79}
80
81// Error implements the error interface.
82func (msg Error) Error() string {

Callers

nothing calls this directly

Calls 2

JSONMethod · 0.95
MarshalMethod · 0.65

Tested by

no test coverage detected