mgx

package
Version: v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 1 Imported by: 11

Documentation

Overview

Package mgx provides helpers that complement the github.com/magefile/mage/mg package. They are general purpose functions that assist with writing magefiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(err error)

Must stops execution by throwing a panic when an error occurs.

This may be used to keep your magefile brief, and mimic set -euo in an equivalent bash script. This pattern works well in magefile targets only, not helper functions. For helper functions, return an error so that you can write tests and allow the calling function to handle the error.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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