Discover Packages
github.com/secman-team/gh-api
core
ghrepo
package
Version:
v0.3.21
Opens a new window with list of versions in this module.
Published: Jul 3, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
TODO there is a parallel implementation for non-isolated commands
FullName serializes a GitHub repository into an "OWNER/REPO" string
IsSame compares two GitHub repositories
func SetDefaultHost(host string )
SetDefaultHost overrides the default GitHub hostname for FromFullName.
TODO: remove after FromFullName approach is revisited
Interface describes an object that represents a GitHub repository
FromFullName extracts the GitHub repository information from the following
formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.
FromURL extracts the GitHub repository information from a git remote URL
New instantiates a GitHub repository from owner and name arguments
NewWithHost is like New with an explicit host name
Source Files
¶
Click to show internal directories.
Click to hide internal directories.