internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAllPlatforms

func BuildAllPlatforms(config BuildConfig, mainFilePath string, spinner *Spinner)

func CheckGoInstalled

func CheckGoInstalled() error

func CompressResults

func CompressResults(results []buildResult, spinner *Spinner)

func IsMainFile

func IsMainFile(path string) (bool, error)

func PrintSummaryTable

func PrintSummaryTable(results []buildResult)

func TIERFomrater

func TIERFomrater(firstClass bool) string

func ValidateProjectDirectory

func ValidateProjectDirectory(dir string, spinner *Spinner) (string, error)

Types

type BuildConfig

type BuildConfig struct {
	ProjectDir  string
	OutputDir   string
	BinaryName  string
	Targets     []GoDist
	Compress    bool
	Concurrency int
	DryRun      bool
}

type GoDist

type GoDist struct {
	GOOS         string `json:"GOOS"`
	GOARCH       string `json:"GOARCH"`
	CgoSupported bool   `json:"CgoSupported"`
	FirstClass   bool   `json:"FirstClass"`
}

func FilterFirstClass

func FilterFirstClass(platforms []GoDist) []GoDist

func GetAvailablePlatforms

func GetAvailablePlatforms() ([]GoDist, error)

func ParseTargets

func ParseTargets(targetF string, allPlatforms []GoDist, spinner *Spinner) []GoDist

type Spinner

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

func NewSpinner

func NewSpinner(message string) *Spinner

func (*Spinner) BufferWarn

func (s *Spinner) BufferWarn(msg string)

func (*Spinner) Fail

func (s *Spinner) Fail(finalMessage string)

func (*Spinner) FlushWarnings

func (s *Spinner) FlushWarnings()

func (*Spinner) SetMessage

func (s *Spinner) SetMessage(msg string)

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop(finalMessage string)

Jump to

Keyboard shortcuts

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