aboutsummaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rw-r--r--parser/parser.go2
-rw-r--r--parser/parser_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/parser/parser.go b/parser/parser.go
index 222e4c0..dfcd4b4 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -8,7 +8,7 @@ import (
"go.neonxp.dev/json/model"
)
-func Parse(json string) (*model.Node, error) {
+func Parse(json string) (model.Node, error) {
l := newLexer(json)
go l.Run(initJson)
n, err := parse(l.Output)
diff --git a/parser/parser_test.go b/parser/parser_test.go
index ea5aa0e..88a1f8f 100644
--- a/parser/parser_test.go
+++ b/parser/parser_test.go
@@ -14,7 +14,7 @@ func TestParse(t *testing.T) {
tests := []struct {
name string
args args
- want *model.Node
+ want model.Node
wantErr bool
}{
{