readme: use correct  conf pkg instead of cfg for config (#4)
				
					
				
			This commit is contained in:
		
							parent
							
								
									2488ec3def
								
							
						
					
					
						commit
						4d0bfa25aa
					
				| @ -38,7 +38,7 @@ import ( | |||||||
| 	"log" | 	"log" | ||||||
| 	"os" | 	"os" | ||||||
| 
 | 
 | ||||||
| 	"github.com/VKCOM/php-parser/pkg/cfg" | 	"github.com/VKCOM/php-parser/pkg/conf" | ||||||
| 	"github.com/VKCOM/php-parser/pkg/errors" | 	"github.com/VKCOM/php-parser/pkg/errors" | ||||||
| 	"github.com/VKCOM/php-parser/pkg/parser" | 	"github.com/VKCOM/php-parser/pkg/parser" | ||||||
| 	"github.com/VKCOM/php-parser/pkg/version" | 	"github.com/VKCOM/php-parser/pkg/version" | ||||||
| @ -57,7 +57,7 @@ func main() { | |||||||
| 
 | 
 | ||||||
| 	// Parse | 	// Parse | ||||||
| 
 | 
 | ||||||
| 	rootNode, err := parser.Parse(src, cfg.Config{ | 	rootNode, err := parser.Parse(src, conf.Config{ | ||||||
| 		Version:          &version.Version{Major: 8, Minor: 0}, | 		Version:          &version.Version{Major: 8, Minor: 0}, | ||||||
| 		ErrorHandlerFunc: errorHandler, | 		ErrorHandlerFunc: errorHandler, | ||||||
| 	}) | 	}) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user