istio: istio.io/istio/mixer/cmd/shared Index | Files

package shared

import "istio.io/istio/mixer/cmd/shared"

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

Index

Package Files

shared.go

Variables

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().

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

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

type FormatFn Uses

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.

Package shared imports 2 packages (graph) and is imported by 7 packages. Updated 2018-02-18. Refresh now. Tools for package owners.