shared

package
v0.0.0-...-865e90e Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 broker 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