diff --git a/README.md b/README.md index b96aa66..f8c065c 100644 --- a/README.md +++ b/README.md @@ -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, }) @@ -105,4 +105,4 @@ Namespace resolver Namespace resolver is a visitor that resolves nodes fully qualified name and saves into `map[node.Node]string` structure - For `Class`, `Interface`, `Trait`, `Function`, `Constant` nodes it saves name with current namespace. -- For `Name`, `Relative`, `FullyQualified` nodes it resolves `use` aliases and saves a fully qualified name. \ No newline at end of file +- For `Name`, `Relative`, `FullyQualified` nodes it resolves `use` aliases and saves a fully qualified name.