pluginmodule

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash []byte

Hash is a module hash

type Resolver

type Resolver struct {
	Config ResolverConfig
}

Resolver is a module resolver

func NewResolver

func NewResolver(config ResolverConfig) *Resolver

NewResolver creates a new module resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve() (*modfile.File, Hash, error)

Resolve resolves the module info for the target module

type ResolverConfig

type ResolverConfig struct {
	Path    string
	Target  string
	Replace string
}

ResolverConfig is a module resolver configuration

Jump to

Keyboard shortcuts

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