common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Architectures is a list of architectures to build binaries for.
	Architectures = []string{"amd64", "arm"}
	// OSList is a list of all OSes to build binaries for.
	OSList = []string{osLinux, osWindows, osDarwin}
)

Functions

func Build

func Build(args ...string) error

Build builds the project.

func BuildAll

func BuildAll(args ...string) error

BuildAll builds all binaries for all OSes and architectures.

func Commit

func Commit() (string, error)

func CopyOpenAPI

func CopyOpenAPI(repo, service, outfile string) error

func CreateOpenAPI

func CreateOpenAPI(repo, outfile string, subServices []string) error

func DockerImage

func DockerImage(repositoryAndTag string, args ...string) error

DockerImage builds the docker image for the project.

func Generate

func Generate(paths ...string) error

Generate runs go generate for the specified paths. If no paths are used, it generates for './...'.

func Lint

func Lint() error

Lint runs linting against the project.

func MergeOpenAPI

func MergeOpenAPI(repo, outfile string, subServices []string) error

func Test

func Test(args ...string) error

Test runs all tests in the project using gotestsum.

func Version

func Version() (string, error)

func WorkDir

func WorkDir() string

WorkDir returns the current working directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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