compiler

package
v1.0.10184-822ca07 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package compiler aids with compiling your Go binaries efficiently and in a consistent way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDir     string
	LDFlags     string
	Parallelism int
}

type Parallel

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

func New

func New(cfg Config) *Parallel

func (*Parallel) Add

func (t *Parallel) Add(work Work)

func (*Parallel) Cleanup

func (t *Parallel) Cleanup()

func (*Parallel) Dir

func (t *Parallel) Dir() string

func (*Parallel) Run

func (t *Parallel) Run(ctx context.Context) error

type Work

type Work struct {
	Name         string
	Target       string
	Source       string
	WithCoverage bool
	Tags         string
	Environment  []string

	Result *string
}

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

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