lib

package
v0.0.2024020808 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args ...string) (err error)

Run runs the go command with caching. The args are the same as the arguments to the `go run` command.

Types

type BuildInfo added in v0.0.2024020404

type BuildInfo struct {
	GoVersion string    `json:"go_version"`
	BuildArgs []string  `json:"build_args"`
	Package   *string   `json:"package,omitempty"`
	Files     []*GoFile `json:"files,omitempty"`
	Hash      string    `json:"hash"`
}

type GoEnv added in v0.0.2024020404

type GoEnv struct {
	Version string `json:"GOVERSION"`
}

GoEnv is a struct to hold the output of `go env -json`.

type GoFile added in v0.0.2024020404

type GoFile struct {
	Name string `json:"name"`
	Hash string `json:"hash"`
	Size int64  `json:"-"`
}

Jump to

Keyboard shortcuts

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