func AssertGoldenBytes(t TestingT, actual []byte, filename string) {
	t.Helper()
	if err := compare(actual, path(filename)); err != nil {
		t.Fatalf("%v", err)
	}
}
AssertGoldenBytes asserts that the give actual content matches the contents of the given filename
package test
import (
	"bytes"
	"flag"
	"github.com/pkg/errors"
	"io/ioutil"
	"path/filepath"
)
var updateGolden = flag.Bool("update", false, "update golden files")
type TestingT interface {
	Fatal(...interface{})
	Fatalf(string, ...interface{})
	HelperT
}
type HelperT interface {
	Helper()
}