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

Method MarshalJSON

coderd/rbac/roles.go:112–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func (r *RoleIdentifier) MarshalJSON() ([]byte, error) {
113 return json.Marshal(r.String())
114}
115
116func (r *RoleIdentifier) UnmarshalJSON(data []byte) error {
117 var str string

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected