mage

package module
v0.0.0-...-9a036db Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 7 Imported by: 0

README

mage

Mage build system helper library

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GolangCILintVersion = "1.56.2"

Functions

func ChangeLogger

func ChangeLogger(f LoggingFunc) func()

Change the logger function while returning a function to revert to the previous logger function.

func Clean

func Clean(ctx context.Context) error

Makefile analog: clean the artifacts (and .makefiles).

func GoBuild

func GoBuild(releaseType ReleaseType) func(context.Context) error

Build the golang project with a specified release type.

func GoLint

func GoLint(ctx context.Context) error

Run golangci-lint on project.

func GoModDownload

func GoModDownload(ctx context.Context) error

Manage your deps, or running package managers.

func GoTest

func GoTest(ctx context.Context) error

Run golang unit tests on project.

func IsDebug

func IsDebug() bool

func IsVerbose

func IsVerbose() bool

Types

type LoggingFunc

type LoggingFunc func(format string, v ...any)
var LogPrintF LoggingFunc = log.Printf

type ReleaseType

type ReleaseType string
const (
	DebugRelease      ReleaseType = "debug"
	ProductionRelease ReleaseType = "release"
)

Jump to

Keyboard shortcuts

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