releng

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(dest string, specs []CopySpec)

Archive bundles files into an archive.

func BuildGo

func BuildGo(pkg, dest string, spec GoSpec)

BuildGo builds a Go binary.

func Getwd

func Getwd() string

Getwd returns the current working directory.

func Mkdir

func Mkdir(path string)

Mkdir creates the specified directory.

func Must

func Must(err error)

Must exits on error.

func RequireFiles

func RequireFiles(files []string)

RequireFiles checks for existence and readability of files.

func WriteFile

func WriteFile(path string, data []byte)

WriteFile writes the data to the specified file.

Types

type CopySpec

type CopySpec struct {
	Inc    string
	DstDir string
	Exe    bool
}

CopySpec specifies files to copy.

type GoSpec

type GoSpec struct {
	OS, Arch, Arm, LDFlags string
}

GoSpec configures a Go binary build.

Jump to

Keyboard shortcuts

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