summaryrefslogtreecommitdiff
path: root/rrdformat/rrdbinary/errors.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2020-01-26 22:30:00 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2020-01-26 22:30:00 -0500
commit72c4b2518a77ee9952a0fa25ae671f06d8d85570 (patch)
treeecf1aabe3c997a22d0ad1c81f4a165c48182d0f7 /rrdformat/rrdbinary/errors.go
parent02003547bc96b3758355f0af0275170da1dba942 (diff)
it compiles
Diffstat (limited to 'rrdformat/rrdbinary/errors.go')
-rw-r--r--rrdformat/rrdbinary/errors.go2
1 files changed, 1 insertions, 1 deletions
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
}