Documentation ¶
Index ¶
- func ExitIfError(err error)
- func Fail(msg string, args ...interface{})
- func Failed(msg string, args ...interface{})
- func FormatDate(d time.Time) string
- func Indent(s, indent string) string
- func Success(msg string, args ...interface{})
- func TopoSort(nodes map[string]Node) (sorted []string)
- func Warn(msg string, args ...interface{})
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitIfError ¶
func ExitIfError(err error)
ExitIfError exists with error message if err is not nil.
func Failed ¶
func Failed(msg string, args ...interface{})
Failed prints failure message in stderr and exits.
func FormatDate ¶
Format a date to string, return empty if isZero.
func Success ¶
func Success(msg string, args ...interface{})
Success prints success message in stdout.
Types ¶
Click to show internal directories.
Click to hide internal directories.