package util import ( "fmt" "io" "os" ) // IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing. // Inconsistent and different names make it hard to read and review code type IOStreams struct { // In think, os.Stdin In io.Reader // Out think, os.Stdout Out io.Writer // ErrOut think, os.Stderr ErrOut io.Writer } func PrintErrorMessage(errorMessage string, exitCode int) { fmt.Println(errorMessage) os.Exit(exitCode) }