String returns the normalized string for the ref.
()
| 145 | |
| 146 | // String returns the normalized string for the ref. |
| 147 | func (r Spec) String() string { |
| 148 | if r.Object == "" { |
| 149 | return r.Locator |
| 150 | } |
| 151 | if r.Object[:1] == "@" { |
| 152 | return r.Locator + r.Object |
| 153 | } |
| 154 | |
| 155 | return r.Locator + ":" + r.Object |
| 156 | } |
no outgoing calls