From e53a7b767a6251ec2548443dda6f296133da725e Mon Sep 17 00:00:00 2001 From: Erik Hollensbe Date: Wed, 13 Aug 2014 15:13:21 -0700 Subject: [PATCH] move utils.Fataler to pkg/log.Fataler Docker-DCO-1.1-Signed-off-by: Erik Hollensbe (github: erikh) --- log/log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/log/log.go b/log/log.go index 53513a9..53be6cf 100644 --- a/log/log.go +++ b/log/log.go @@ -20,6 +20,12 @@ const ( debug ) +// A common interface to access the Fatal method of +// both testing.B and testing.T. +type Fataler interface { + Fatal(args ...interface{}) +} + func (p priority) String() string { switch p { case fatal: