update README.md

This commit is contained in:
z7zmey 2018-04-09 23:30:44 +03:00
parent 6ff2beafa3
commit ac135f132d

View File

@ -40,10 +40,12 @@ import (
func main() {
src := bytes.NewBufferString(`<? echo "Hello world";`)
nodes, comments, positions := php7.Parse(src, "example.php")
nodes, comments, positions, errors := php7.Parse(src, "example.php")
_ = errors
visitor := visitor.Dumper{
Writer: os.Stdout,
Writer: os.Stdout,
Indent: "",
Comments: comments,
Positions: positions,