mapper

package
v0.0.0-...-472ff39 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

type Mapper struct {
	// contains filtered or unexported fields
}

Map of toolchain targets by module path

func New

func New() *Mapper

func (*Mapper) Add

func (t *Mapper) Add(path string, name string)

func (*Mapper) Get

func (t *Mapper) Get(path string) string

Returns the toolchain module name based on the path. The behavior is as follows: - For given path, if a toolchain config exists return the first registered toolchain. - If no config exists for current path, walk the directories upwards looking for default.

Jump to

Keyboard shortcuts

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