You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/05/25 09:24:26 UTC

[plc4x] 01/06: fix(codegen/go): Adjusted the packages of the ParserHelper and XmlParserHelper to the new structure

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit dbaaccbb925117618556e79f3af3ca07baa36cb2
Author: cdutz <ch...@c-ware.de>
AuthorDate: Wed May 25 11:18:49 2022 +0200

    fix(codegen/go): Adjusted the packages of the ParserHelper and XmlParserHelper to the new structure
---
 .../src/main/resources/templates/go/parser-factory-template.go.ftlh     | 2 +-
 .../src/main/resources/templates/go/xml-parser-factory-template.go.ftlh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/code-generation/language-go/src/main/resources/templates/go/parser-factory-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/parser-factory-template.go.ftlh
index 9b27979aad..82e6785b87 100644
--- a/code-generation/language-go/src/main/resources/templates/go/parser-factory-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/parser-factory-template.go.ftlh
@@ -48,7 +48,7 @@ ${helper.fileName(protocolName, languageName, outputFlavor)?replace(".", "/")}/P
 package ${outputFlavor?replace("-","")}
 
 import (
-	"github.com/apache/plc4x/plc4go/protocols/${helper.getSanitizedProtocolName()}/${outputFlavor?replace("-","")}/model"
+	"github.com/apache/plc4x/plc4go/internal/${helper.getSanitizedProtocolName()}/${outputFlavor?replace("-","")}/model"
 	"github.com/apache/plc4x/plc4go/internal/spi/utils"
 	"github.com/pkg/errors"
 )
diff --git a/code-generation/language-go/src/main/resources/templates/go/xml-parser-factory-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/xml-parser-factory-template.go.ftlh
index b95f3f0a04..d29c30c2b3 100644
--- a/code-generation/language-go/src/main/resources/templates/go/xml-parser-factory-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/xml-parser-factory-template.go.ftlh
@@ -48,7 +48,7 @@ ${helper.fileName(protocolName, languageName, outputFlavor)?replace(".", "/")}/X
 package ${outputFlavor?replace("-","")}
 
 import (
-	"github.com/apache/plc4x/plc4go/protocols/${helper.getSanitizedProtocolName()}/${outputFlavor?replace("-","")}/model"
+	"github.com/apache/plc4x/plc4go/internal/${helper.getSanitizedProtocolName()}/${outputFlavor?replace("-","")}/model"
 	"github.com/apache/plc4x/plc4go/internal/spi/utils"
 	"github.com/pkg/errors"
     "strings"