shared

package
v0.0.0-...-edfa39e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package shared contains types and functions that are used across the full set of mixer commands.

Index

Constants

This section is empty.

Variables

View Source
var Fatalf = func(format string, args ...interface{}) {
	_, _ = fmt.Fprintf(os.Stderr, format+"\n", args...)
	os.Exit(-1)
}

Fatalf is a FormatFn that prints the formatted string to os.Stderr and then calls os.Exit().

View Source
var Printf = func(format string, args ...interface{}) {
	fmt.Printf(format+"\n", args...)
}

Printf is a FormatFn that prints the formatted string to os.Stdout.

Functions

This section is empty.

Types

type FormatFn

type FormatFn func(format string, args ...interface{})

FormatFn formats the supplied arguments according to the format string provided and executes some set of operations with the result.

Jump to

Keyboard shortcuts

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