magetools

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommit

func GetCommit() (string, error)

func GetLatestTag

func GetLatestTag() (string, error)

func IsGitClean

func IsGitClean() (bool, error)

Types

type Go

type Go struct {
	Arch       string
	OS         string
	Version    string
	Commit     string
	CGoEnabled string
	Verbose    string
}

func NewGo

func NewGo(arch, goos, version, commit, cgoEnabled, verbose string) *Go

func (*Go) Build

func (g *Go) Build(flags func(string, string) string, target, output string) error

func (*Go) Mod

func (g *Go) Mod(cmd string) error

func (*Go) Test

func (g *Go) Test(flags func(string, string) string, target string) error

Jump to

Keyboard shortcuts

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