NewWithHost is like New with an explicit host name
(owner, repo, hostname string)
| 24 | |
| 25 | // NewWithHost is like New with an explicit host name |
| 26 | func NewWithHost(owner, repo, hostname string) Interface { |
| 27 | return &ghRepo{ |
| 28 | owner: owner, |
| 29 | name: repo, |
| 30 | hostname: normalizeHostname(hostname), |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // FullName serializes a GitHub repository into an "OWNER/REPO" string |
| 35 | func FullName(r Interface) string { |