ghrepo

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullName

func FullName(r Interface) string

FullName serializes a GitHub repository into an "OWNER/REPO" string

func IsSame

func IsSame(a, b Interface) bool

IsSame compares two GitHub repositories

Types

type Interface

type Interface interface {
	RepoName() string
	RepoOwner() string
}

Interface describes an object that represents a GitHub repository

func FromFullName

func FromFullName(nwo string) Interface

FromFullName extracts the GitHub repository inforation from an "OWNER/REPO" string

func FromURL

func FromURL(u *url.URL) (Interface, error)

FromURL extracts the GitHub repository information from a URL

func New

func New(owner, repo string) Interface

New instantiates a GitHub repository from owner and name arguments

Jump to

Keyboard shortcuts

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