update README

* add missing writer in main example
This commit is contained in:
Anthony HAMON 2018-04-07 15:01:59 +02:00 committed by GitHub
parent 624dc4f498
commit e8a496207c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,