From 72c4b2518a77ee9952a0fa25ae671f06d8d85570 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 26 Jan 2020 22:30:00 -0500 Subject: it compiles --- rrdformat/rrdbinary/errors.go | 2 +- rrdformat/rrdbinary/errors_test.go | 4 ++-- rrdformat/rrdbinary/types.go | 2 +- rrdformat/rrdbinary/unmarshal.go | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'rrdformat/rrdbinary') diff --git a/rrdformat/rrdbinary/errors.go b/rrdformat/rrdbinary/errors.go index 984e0a5..1e61af0 100644 --- a/rrdformat/rrdbinary/errors.go +++ b/rrdformat/rrdbinary/errors.go @@ -13,7 +13,7 @@ type BinaryError struct { ctxEOF bool } -func newBinError(msg string, ctxFile []byte, ctxStart, ctxLen int) error { +func NewBinError(msg string, ctxFile []byte, ctxStart, ctxLen int) error { if ctxStart+ctxLen > len(ctxFile) { ctxLen = len(ctxFile) - ctxStart } diff --git a/rrdformat/rrdbinary/errors_test.go b/rrdformat/rrdbinary/errors_test.go index f65929b..86ae809 100644 --- a/rrdformat/rrdbinary/errors_test.go +++ b/rrdformat/rrdbinary/errors_test.go @@ -11,7 +11,7 @@ func TestBinaryError(t *testing.T) { assert := assert.New(t) bad404 := []byte(`