github

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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