build

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package build provides a mockable wrapper for go/build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) ArchChar

func (*Impl) ArchChar(goarch string) (string, error)

func (*Impl) Import

func (*Impl) Import(path string, srcDir string, mode build.ImportMode) (*build.Package, error)

func (*Impl) ImportDir

func (*Impl) ImportDir(dir string, mode build.ImportMode) (*build.Package, error)

func (*Impl) IsLocalImport

func (*Impl) IsLocalImport(path string) bool

type Interface

type Interface interface {
	ArchChar(goarch string) (string, error)
	Import(path string, srcDir string, mode build.ImportMode) (*build.Package, error)
	ImportDir(dir string, mode build.ImportMode) (*build.Package, error)
	IsLocalImport(path string) bool
}

Directories

Path Synopsis
Package constraint provides a mockable wrapper for go/build/constraint.
Package constraint provides a mockable wrapper for go/build/constraint.

Jump to

Keyboard shortcuts

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