Documentation ¶
Overview ¶
Package github provides functionality for interacting with GitHub repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
func Clone(dir string, repo *Repository) error
Clone will clone the given repository at the exact ref from GitHub into the given directory. Note that the git index will be omitted.
Types ¶
type Repository ¶
type Repository struct { // Owner is the name of the user or organization that owns the project. Owner string // Project is the name of the project to clone. Project string // Ref is the reference to check out. Ref string }
A Repository represents a GitHub repository.
Click to show internal directories.
Click to hide internal directories.