build

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Platforms = []Platform{
	{OS: "windows", Arch: "amd64"},
	{OS: "linux", Arch: "amd64"},
	{OS: "darwin", Arch: "amd64"},
}

Platforms contains the list of platforms to build for.

Functions

func Build

func Build(option *Option) error

func Builder

func Builder(opts ...OptionFunc) error

Types

type Option

type Option struct {
	Path      string
	ZipMode   bool
	Platforms []Platform
}

type OptionFunc

type OptionFunc func(*Option)

func WithPath

func WithPath(path string) OptionFunc

func WithPlaftforms

func WithPlaftforms(p Platform) OptionFunc

func WithZip

func WithZip(zip bool) OptionFunc

type Platform

type Platform struct {
	OS   string
	Arch string
}

Platform represents a build platform with OS and Architecture.

Jump to

Keyboard shortcuts

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