summaryrefslogtreecommitdiff
path: root/parser.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2019-11-28 15:43:52 +0100
committerÖzgür Kesim <oec@codeblau.de>2019-11-28 15:43:52 +0100
commit5173c86ded407b4990903e275be1f286345006ec (patch)
tree334a37efdec34392bc170669762e330a580dbf19 /parser.go
parent29336c8a7a98087bc83ef39d352282bc92b1b3c5 (diff)
remember input string in result
Diffstat (limited to 'parser.go')
-rw-r--r--parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.go b/parser.go
index c2fbb3e..1b196b6 100644
--- a/parser.go
+++ b/parser.go
@@ -80,7 +80,7 @@ func Run(parser Parserish, input string, ws ...VoidParser) (result interface{},
ps.WS = ws[0]
}
- ret := Result{}
+ ret := Result{Input: input}
p(ps, &ret)
ps.WS(ps)