MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / MarshalJSON

Method MarshalJSON

crypto/hash/hash.go:135–137  ·  view source on GitHub ↗

MarshalJSON implements the json.Marshaler interface.

()

Source from the content-addressed store, hash-verified

133
134// MarshalJSON implements the json.Marshaler interface.
135func (h Hash) MarshalJSON() ([]byte, error) {
136 return json.Marshal(h.String())
137}
138
139// UnmarshalJSON implements the json.Unmarshaler interface.
140func (h *Hash) UnmarshalJSON(data []byte) (err error) {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
MarshalMethod · 0.80

Tested by

no test coverage detected