package util import ( "os" ) // ExitWithError prints error and exits with error code`. func ExitWithError(err error) { Panicf("Error: %s\n", err) os.Exit(1) }