update README
* add missing writer in main example
This commit is contained in:
		
							parent
							
								
									624dc4f498
								
							
						
					
					
						commit
						e8a496207c
					
				| @ -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, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user