FromFullName extracts the GitHub repository information from the following formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.
(nwo string)
| 44 | // FromFullName extracts the GitHub repository information from the following |
| 45 | // formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL. |
| 46 | func FromFullName(nwo string) (Interface, error) { |
| 47 | return FromFullNameWithHost(nwo, defaultHost()) |
| 48 | } |
| 49 | |
| 50 | // FromFullNameWithHost is like FromFullName that defaults to a specific host for values that don't |
| 51 | // explicitly include a hostname. |