helper

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsFromAny added in v0.1.4

func ArgsFromAny(in []any) []string

func FilterCoverageOutput

func FilterCoverageOutput(filename string) error

FilterCoverageOutput filters the coverage output by removing any lines that contain generated protobuf files `.pg.go`.

func MergeYaml added in v0.1.8

func MergeYaml(leftFile, rightFile string) ([]byte, error)

Types

type CommandTemplate

type CommandTemplate struct {
	Debug bool

	CGO       string
	GoOS      string
	GoArch    string
	GoArm     string
	GoVersion string

	GitRev     string
	GitHash    string
	GitHeadTag string
	GitSlug    string

	LDFlags string

	CWD string

	OutputArtifact string
	TargetPath     string
	CommandDir     string
	CommandName    string
	HomeDir        string

	AdditionalArtifacts map[string]string
}

func NewCommandTemplate

func NewCommandTemplate(debug bool, commandDir string) *CommandTemplate

func (*CommandTemplate) Render

func (t *CommandTemplate) Render(cmd string) (string, error)

func (*CommandTemplate) SetPlatform added in v0.1.31

func (t *CommandTemplate) SetPlatform(os, arch, arm string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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