MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / MarshalJSON

Method MarshalJSON

types/account.go:93–95  ·  view source on GitHub ↗

MarshalJSON implements the json.Marshaler interface.

()

Source from the content-addressed store, hash-verified

91
92// MarshalJSON implements the json.Marshaler interface.
93func (r UserPermissionRole) MarshalJSON() ([]byte, error) {
94 return json.Marshal(r.String())
95}
96
97// String implements the fmt.Stringer interface.
98func (r UserPermissionRole) String() string {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
MarshalMethod · 0.80

Tested by

no test coverage detected