readme: use correct conf pkg instead of cfg for config (#4)

This commit is contained in:
Ruud Kamphuis 2021-07-31 12:19:33 +02:00 committed by GitHub
parent 2488ec3def
commit 4d0bfa25aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ import (
"log"
"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/parser"
"github.com/VKCOM/php-parser/pkg/version"
@ -57,7 +57,7 @@ func main() {
// Parse
rootNode, err := parser.Parse(src, cfg.Config{
rootNode, err := parser.Parse(src, conf.Config{
Version: &version.Version{Major: 8, Minor: 0},
ErrorHandlerFunc: errorHandler,
})