From e8a496207c8625d487e98e7ad4e0cf4a6c9671c7 Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Sat, 7 Apr 2018 15:01:59 +0200 Subject: [PATCH] update README * add missing writer in main example --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1ec37f4..b1f496d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ package main import ( "bytes" + "os" "github.com/z7zmey/php-parser/php7" "github.com/z7zmey/php-parser/visitor" @@ -42,6 +43,7 @@ func main() { nodes, comments, positions := php7.Parse(src, "example.php") visitor := visitor.Dumper{ + Writer: os.Stdout, Indent: "", Comments: comments, Positions: positions,