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.
Click to show internal directories.
Click to hide internal directories.