()
| 12 | } |
| 13 | |
| 14 | func (r Repository) String() string { |
| 15 | if r.Owner == "" && r.Name == "" { |
| 16 | return "" |
| 17 | } |
| 18 | return fmt.Sprintf("%s/%s", r.Owner, r.Name) |
| 19 | } |
| 20 | |
| 21 | // ParseRepository parses a Repository from a string in "owner/name" format. |
| 22 | func ParseRepository(s string) (Repository, error) { |
no outgoing calls