move utils.Fataler to pkg/log.Fataler

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Upstream-commit: ac63d925d2618e700d117c5d9e402ccc0c5cecc8
Component: engine
This commit is contained in:
Erik Hollensbe
2014-08-13 15:13:21 -07:00
parent 4737f7cea5
commit b8d5783511
4 changed files with 43 additions and 41 deletions

View File

@ -28,12 +28,6 @@ type KeyValuePair struct {
Value string
}
// A common interface to access the Fatal method of
// both testing.B and testing.T.
type Fataler interface {
Fatal(args ...interface{})
}
// Go is a basic promise implementation: it wraps calls a function in a goroutine,
// and returns a channel which will later return the function's return value.
func Go(f func() error) chan error {