Empty reports whether the content is empty, for callers that branch on presence without needing the bytes.
()
| 53 | // Empty reports whether the content is empty, for callers that branch on |
| 54 | // presence without needing the bytes. |
| 55 | func (u Untrusted) Empty() bool { |
| 56 | return u.raw == "" |
| 57 | } |
| 58 | |
| 59 | // UnmarshalJSON lets a struct field typed as Untrusted be populated directly by |
| 60 | // json.Unmarshal, so provenance is preserved across a JSON decode. This is what |
no outgoing calls