update README
* add missing writer in main example
This commit is contained in:
		
							parent
							
								
									624dc4f498
								
							
						
					
					
						commit
						e8a496207c
					
				| @ -32,6 +32,7 @@ package main | |||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"bytes" | 	"bytes" | ||||||
|  | 	"os" | ||||||
| 
 | 
 | ||||||
| 	"github.com/z7zmey/php-parser/php7" | 	"github.com/z7zmey/php-parser/php7" | ||||||
| 	"github.com/z7zmey/php-parser/visitor" | 	"github.com/z7zmey/php-parser/visitor" | ||||||
| @ -42,6 +43,7 @@ func main() { | |||||||
| 	nodes, comments, positions := php7.Parse(src, "example.php") | 	nodes, comments, positions := php7.Parse(src, "example.php") | ||||||
| 
 | 
 | ||||||
| 	visitor := visitor.Dumper{ | 	visitor := visitor.Dumper{ | ||||||
|  | 	        Writer:    os.Stdout, | ||||||
| 		Indent:    "", | 		Indent:    "", | ||||||
| 		Comments:  comments, | 		Comments:  comments, | ||||||
| 		Positions: positions, | 		Positions: positions, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user