Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is the error returned by GetFile when the target file does not exist. ErrNotFound = errors.New("file not found") )
Functions ¶
func GetFile ¶
func GetFile( ctx context.Context, c *github.Client, repositoryOwner, repositoryName, branch, path string, ) (*github.RepositoryContent, error)
GetFile returns a handle to a file in a GitHub repository by branch and path. If an empty value is provided as the name of the branch, the file is looked up in the default one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.