From 4d0bfa25aae70261502d6a282951fb4e4f8c39d7 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Sat, 31 Jul 2021 12:19:33 +0200 Subject: [PATCH] readme: use correct `conf` pkg instead of `cfg` for config (#4) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.