common

package
v0.0.0-...-0dbf0ee Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2016 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintError

func PrintError(err error)

PrintError exits the program with an error.

func UsageAndExit

func UsageAndExit(message string, exitCode int, usage UsageFunc)

UsageAndExit exits and prints how the program should be used.

Types

type UsageFunc

type UsageFunc func()

UsageFunc represents a function which prints how the program should be used.

Jump to

Keyboard shortcuts

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