metago

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package metago A client to get meta information related to go-get. go-import and go-source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EffectivePkgSource

func EffectivePkgSource(m *MetaGo) string

EffectivePkgSource get effective source package.

Types

type MetaGo

type MetaGo struct {
	Pkg      string
	GoSource []string
	GoImport []string
}

MetaGo information from the meta tags.

func Get

func Get(moduleName string) (*MetaGo, error)

Get gets go-get meta-information from the meta-tags.

func GetWithContext added in v0.10.0

func GetWithContext(ctx context.Context, moduleName string) (*MetaGo, error)

GetWithContext gets go-get meta-information from the meta-tags.

Jump to

Keyboard shortcuts

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