golang

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package golang provides a Builder implementation for golang.

Index

Constants

This section is empty.

Variables

View Source
var Default = &Builder{}

Default builder instance.

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder is golang builder.

func (*Builder) Build

func (*Builder) Build(ctx *context.Context, build config.Build, options api.Options) error

Build builds a golang build.

func (*Builder) Dependencies

func (b *Builder) Dependencies() []string

Dependencies implements build.DependingBuilder.

func (*Builder) FixTarget

func (b *Builder) FixTarget(target string) string

FixTarget implements build.TargetFixer.

func (*Builder) Parse

func (b *Builder) Parse(target string) (api.Target, error)

Parse implements build.Builder.

func (*Builder) WithDefaults

func (*Builder) WithDefaults(build config.Build) (config.Build, error)

WithDefaults sets the defaults for a golang build and returns it.

type Target

type Target struct {
	Target    string
	Goos      string
	Goarch    string
	Goamd64   string
	Go386     string
	Goarm     string
	Goarm64   string
	Gomips    string
	Goppc64   string
	Goriscv64 string
}

Target is a Go build target.

func (Target) Fields

func (t Target) Fields() map[string]string

Fields implements build.Target.

func (Target) String

func (t Target) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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