mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-30 01:02:13 +00:00
16 lines
208 B
Go
16 lines
208 B
Go
package common
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func Panicf(s string, args ...interface{}) {
|
|
panic(fmt.Sprintf(s, args...))
|
|
}
|
|
|
|
func Exitf(s string, args ...interface{}) {
|
|
fmt.Printf(s+"\n", args...)
|
|
os.Exit(1)
|
|
}
|