build

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package build provides tool-independent functionality to support building Golang code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	Name        string // Application name
	Os          string // Operating system (GOOS)
	Arch        string // Architecture (GOARCH)
	Architcture string // Deprecated: use Arch instead
}

Target defines a possible compilation target.

func (*Target) OutFileName

func (t *Target) OutFileName() string

OutFileName combines OutPath with the application name.

func (*Target) OutPath

func (t *Target) OutPath() string

OutPath returns a relative path to a operating system and architecture specific directory in a `dist` subdirectory.

Jump to

Keyboard shortcuts

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