Help us shape the future of Go! Take the 2026 Go Developer Survey

Build

package
v0.220.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package Build builds a project directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapNoCall

func WrapNoCall[In, Out any](
	funcToWrap func(in In) Out,
	noCallAction func(),
) (wrappedFunc func(in In) Out, noCallCheck func())

Types

type Builder

type Builder struct {
	BuilderBase
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(rc Runtime.Config) *Builder

func (*Builder) Build

func (b *Builder) Build(srcDir string) string

type BuilderBase

type BuilderBase struct {
	Runtime.Config
	// contains filtered or unexported fields
}

type DirtyBuilder

type DirtyBuilder struct {
	BuilderBase
	// contains filtered or unexported fields
}

func NewDirtyBuilder

func NewDirtyBuilder(rc Runtime.Config) *DirtyBuilder

func (*DirtyBuilder) Build

func (b *DirtyBuilder) Build(srcDir string) string

type Env

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

Set mirrors os/exec's dedup — last assignment wins, moved to the end — so Environ() carries no duplicates.

func (*Env) Environ

func (e *Env) Environ() []string

func (*Env) Get

func (e *Env) Get(name, def string) string

func (*Env) Has

func (e *Env) Has(name string) bool

func (*Env) Set

func (e *Env) Set(name, value string)

type IBuild

type IBuild interface {
	Build(srcDir string) string
}

The build entry point both Builder and DirtyBuilder expose.

Jump to

Keyboard shortcuts

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