shared

package
Version: v0.0.0-...-062eff5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL