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 2021/01/31 11:20:26 UTC
[plc4x] 14/45: - Fixed a wrong package name
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch feature/plc4c
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit c95371c1ac90ea79bf6e9d5f442a70e951f9e810
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sun Jan 24 12:52:06 2021 +0100
- Fixed a wrong package name
---
.../src/main/resources/templates/go/parser-factory-template.ftlh | 2 +-
.../src/main/resources/templates/go/xml-parser-factory-template.ftlh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/build-utils/language-go/src/main/resources/templates/go/parser-factory-template.ftlh b/build-utils/language-go/src/main/resources/templates/go/parser-factory-template.ftlh
index b5bb914..c764a90 100644
--- a/build-utils/language-go/src/main/resources/templates/go/parser-factory-template.ftlh
+++ b/build-utils/language-go/src/main/resources/templates/go/parser-factory-template.ftlh
@@ -60,7 +60,7 @@ ${helper.fileName(protocolName, languageName, outputFlavor)?replace(".", "/")}/P
// specific language governing permissions and limitations
// under the License.
//
-package model
+package ${outputFlavor?replace("-","")}
import (
"errors"
diff --git a/build-utils/language-go/src/main/resources/templates/go/xml-parser-factory-template.ftlh b/build-utils/language-go/src/main/resources/templates/go/xml-parser-factory-template.ftlh
index 873c89f..a67a1fa 100644
--- a/build-utils/language-go/src/main/resources/templates/go/xml-parser-factory-template.ftlh
+++ b/build-utils/language-go/src/main/resources/templates/go/xml-parser-factory-template.ftlh
@@ -60,7 +60,7 @@ ${helper.fileName(protocolName, languageName, outputFlavor)?replace(".", "/")}/X
// specific language governing permissions and limitations
// under the License.
//
-package model
+package ${outputFlavor?replace("-","")}
import (
"encoding/xml"