#88 Update README.md
This commit is contained in:
parent
984dba6a80
commit
394f882100
10
README.md
10
README.md
@ -35,8 +35,8 @@ Usage example
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/z7zmey/php-parser/php7"
|
"github.com/z7zmey/php-parser/php7"
|
||||||
@ -54,14 +54,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
visitor := visitor.Dumper{
|
visitor := visitor.Dumper{
|
||||||
Writer: os.Stdout,
|
Writer: os.Stdout,
|
||||||
Indent: "",
|
Indent: "",
|
||||||
Comments: parser.GetComments(),
|
|
||||||
Positions: parser.GetPositions(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rootNode := parser.GetRootNode()
|
rootNode := parser.GetRootNode()
|
||||||
rootNode.Walk(visitor)
|
rootNode.Walk(&visitor)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user