golang

package
v0.0.0-...-72347e0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModuleToRepo

func ModuleToRepo(module string) (*git.Repo, error)

ModuleToRepo resolves a go module name to a remote git repo.

Types

type MetaImport

type MetaImport struct {
	Prefix, VCS, RepoRoot string
}

MetaImport represents the parsed <meta name="go-import" content="prefix vcs reporoot" /> tags from HTML files.

func GetMetaImport

func GetMetaImport(url string) (*MetaImport, error)

GetMetaImport fetches and parses header tags named go-import into a MetaImport object.

func (*MetaImport) OrgRepo

func (m *MetaImport) OrgRepo() (string, string)

Jump to

Keyboard shortcuts

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