MarshalJSON emits the raw content as a JSON string so a value round-trips faithfully through encode/decode.
()
| 72 | // MarshalJSON emits the raw content as a JSON string so a value round-trips |
| 73 | // faithfully through encode/decode. |
| 74 | func (u Untrusted) MarshalJSON() ([]byte, error) { |
| 75 | return json.Marshal(u.raw) |
| 76 | } |
| 77 | |
| 78 | // RawBytes is Raw as a byte slice, for callers that need []byte (hashing, file |
| 79 | // writes). Same terminal caveat as Raw. |
nothing calls this directly
no outgoing calls
no test coverage detected