()
| 34 | } |
| 35 | |
| 36 | func (oref ORef) String() string { |
| 37 | if oref.OType == "" || oref.OID == "" { |
| 38 | return "" |
| 39 | } |
| 40 | return fmt.Sprintf("%s:%s", oref.OType, oref.OID) |
| 41 | } |
| 42 | |
| 43 | func (oref ORef) MarshalJSON() ([]byte, error) { |
| 44 | return json.Marshal(oref.String()) |
no outgoing calls