file

package
v0.0.0-...-9b44f5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL