github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRegistry

type GithubRegistry struct {
	Branch     string
	DefaultVCS string
}

func (*GithubRegistry) Display

func (r *GithubRegistry) Display(importPath, repo string) string

Display returns the content for `go-source` meta tag from the second to the fourth field. It returns 3 fields: `ui-home`, `ui-directory`, `ui-file`.

func (*GithubRegistry) ServerName

func (r *GithubRegistry) ServerName() string

ServerName returns the host name of the registry.

func (*GithubRegistry) Subdir

func (r *GithubRegistry) Subdir(importPath, repo string) string

Subdir returns the subdirectory of the import path.

func (*GithubRegistry) VCS

func (r *GithubRegistry) VCS() string

VCS returns the version control system used by the registry.

Jump to

Keyboard shortcuts

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