buildgo

package module
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(commands map[string]build.Command)

AddCommands adds go and git commands

func EnsureGo added in v0.3.0

func EnsureGo(ctx context.Context) error

EnsureGo ensures that go is installed

func EnsureGoProto added in v0.5.4

func EnsureGoProto(ctx context.Context, deps build.DepsFunc) error

EnsureGoProto ensures that go proto generator is installed

func EnsureGolangCI added in v0.3.0

func EnsureGolangCI(ctx context.Context) error

EnsureGolangCI ensures that golangci is installed

func EnsureProtoC added in v0.5.4

func EnsureProtoC(ctx context.Context) error

EnsureProtoC ensures that protoc is installed

func GitFetch

func GitFetch(ctx context.Context) error

GitFetch fetches changes from repo

func GoBuildPkg

func GoBuildPkg(ctx context.Context, pkg, out string, cgo bool, tags ...string) error

GoBuildPkg builds go package

func GoLint

func GoLint(ctx context.Context, deps build.DepsFunc) error

GoLint runs golangci linter, runs go mod tidy and checks that git tree is clean

func GoModTidy added in v0.4.0

func GoModTidy(ctx context.Context, deps build.DepsFunc) error

GoModTidy calls `go mod tidy`

func GoTest

func GoTest(ctx context.Context, deps build.DepsFunc, tags ...string) error

GoTest runs go test

func InstallAll added in v0.3.0

func InstallAll(ctx context.Context) error

InstallAll installs all go tools

Types

This section is empty.

Jump to

Keyboard shortcuts

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