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

Method MarshalJSON

errors.go:157–159  ·  errors.go::errorMsgs.MarshalJSON

MarshalJSON implements the json.Marshaller interface.

()

Source from the content-addressed store, hash-verified

155
156// MarshalJSON implements the json.Marshaller interface.
157func (a errorMsgs) MarshalJSON() ([]byte, error) {
158 return json.API.Marshal(a.JSON())
159}
160
161func (a errorMsgs) String() string {
162 if len(a) == 0 {

Callers

nothing calls this directly

Calls 2

JSONMethod · 0.95
MarshalMethod · 0.65

Tested by

no test coverage detected