Discover Packages
github.com/sassdavid/relgap
internal
forge
package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Nov 20, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0 modules, 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.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
CompareURL(host, repo, from, to)
FileURL(host, repo, ref, path)
IsGitHub(host)
LineURL(fileURL, line)
RepoURL(host, repo)
TagURL(host, repo, tag)
Types
Source Files
Documentation
Documentation
¶
Package forge names the git hosts relgap reads tools from and builds links to their web pages.
Constants
func CompareURL(host, repo, from, to string) string
func FileURL(host, repo, ref, path string) string
func IsGitHub(host string) bool
func LineURL(fileURL string, line int) string
func RepoURL(host, repo string) string
func TagURL(host, repo, tag string) string
type Kind
View Source
const (
GitHub = "github.com"
Bitbucket = "bitbucket.org"
GitLab = "gitlab.com"
)
Known hosts. A tool without a host is on GitHub .
CompareURL returns the web page comparing tag from with tag to in repo on host.
FileURL returns the web page of path in repo on host at ref; an empty ref means HEAD.
IsGitHub reports whether host is GitHub.
LineURL returns fileURL with the anchor of line: #lines-N on Bitbucket Cloud, #LN elsewhere.
RepoURL returns the web page of repo on host.
TagURL returns the web page of tag in repo on host.
Kind says which API a host speaks.
const (
KindGitHub Kind = "github"
KindBitbucket Kind = "bitbucket"
KindGitLab Kind = "gitlab"
)
Host kinds.
KindOf returns the kind of host: an empty host or github.com is GitHub, bitbucket.org is
Bitbucket Cloud, and any other host is GitLab, because only GitLab hosts can be configured.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.