Parse parse s as a blobref and returns the ref and whether it was parsed successfully.
(s string)
| 213 | // Parse parse s as a blobref and returns the ref and whether it was |
| 214 | // parsed successfully. |
| 215 | func Parse(s string) (ref Ref, ok bool) { |
| 216 | return parse(s, true) |
| 217 | } |
| 218 | |
| 219 | func parse(s string, allowAll bool) (ref Ref, ok bool) { |
| 220 | i := strings.Index(s, "-") |