Expose parser API as unstable (#827)

This commit is contained in:
Thomas Pelletier
2022-11-09 16:12:39 -05:00
committed by GitHub
parent c83d001c6d
commit e195b58fd0
21 changed files with 628 additions and 523 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ import (
"strings"
"testing"
"github.com/pelletier/go-toml/v2/unstable"
"github.com/stretchr/testify/assert"
)
@@ -170,9 +171,9 @@ line 5`,
doc := b.Bytes()
hl := doc[start:end]
err := wrapDecodeError(doc, &decodeError{
highlight: hl,
message: e.msg,
err := wrapDecodeError(doc, &unstable.ParserError{
Highlight: hl,
Message: e.msg,
})
var derr *DecodeError