You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/07/31 16:43:34 UTC

[plc4x] 01/04: chore(plc4go/opcua): re-order imports

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

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

commit c54195f24d61072ced3f065cf5b1449ca76a1d38
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon Jul 31 08:27:43 2023 +0200

    chore(plc4go/opcua): re-order imports
---
 plc4go/internal/opcua/Connection.go                      | 6 ++++--
 plc4go/internal/opcua/Reader.go                          | 6 ++++--
 plc4go/internal/opcua/SecureChannelTransactionManager.go | 5 +++--
 plc4go/internal/opcua/Tag.go                             | 1 +
 plc4go/internal/opcua/Writer.go                          | 6 ++++--
 plc4go/internal/opcua/common.go                          | 6 ++++--
 6 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/plc4go/internal/opcua/Connection.go b/plc4go/internal/opcua/Connection.go
index ea46563984..956f0fed6a 100644
--- a/plc4go/internal/opcua/Connection.go
+++ b/plc4go/internal/opcua/Connection.go
@@ -21,6 +21,9 @@ package opcua
 
 import (
 	"context"
+	"runtime/debug"
+	"sync"
+
 	"github.com/apache/plc4x/plc4go/pkg/api"
 	apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
 	"github.com/apache/plc4x/plc4go/spi"
@@ -28,10 +31,9 @@ import (
 	spiModel "github.com/apache/plc4x/plc4go/spi/model"
 	"github.com/apache/plc4x/plc4go/spi/options"
 	"github.com/apache/plc4x/plc4go/spi/tracer"
+
 	"github.com/pkg/errors"
 	"github.com/rs/zerolog"
-	"runtime/debug"
-	"sync"
 )
 
 //go:generate go run ../../tools/plc4xgenerator/gen.go -type=Connection
diff --git a/plc4go/internal/opcua/Reader.go b/plc4go/internal/opcua/Reader.go
index b2fc1fbbc1..aba5e82291 100644
--- a/plc4go/internal/opcua/Reader.go
+++ b/plc4go/internal/opcua/Reader.go
@@ -23,6 +23,9 @@ import (
 	"context"
 	"encoding/binary"
 	"fmt"
+	"runtime/debug"
+	"strconv"
+
 	apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
 	apiValues "github.com/apache/plc4x/plc4go/pkg/api/values"
 	readWriteModel "github.com/apache/plc4x/plc4go/protocols/opcua/readwrite/model"
@@ -30,10 +33,9 @@ import (
 	"github.com/apache/plc4x/plc4go/spi/options"
 	"github.com/apache/plc4x/plc4go/spi/utils"
 	spiValues "github.com/apache/plc4x/plc4go/spi/values"
+
 	"github.com/pkg/errors"
 	"github.com/rs/zerolog"
-	"runtime/debug"
-	"strconv"
 )
 
 type Reader struct {
diff --git a/plc4go/internal/opcua/SecureChannelTransactionManager.go b/plc4go/internal/opcua/SecureChannelTransactionManager.go
index ea987f9704..a20a69cb21 100644
--- a/plc4go/internal/opcua/SecureChannelTransactionManager.go
+++ b/plc4go/internal/opcua/SecureChannelTransactionManager.go
@@ -20,10 +20,11 @@
 package opcua
 
 import (
-	"github.com/pkg/errors"
-	"github.com/rs/zerolog"
 	"sync"
 	"sync/atomic"
+
+	"github.com/pkg/errors"
+	"github.com/rs/zerolog"
 )
 
 type SecureChannelTransactionManager struct {
diff --git a/plc4go/internal/opcua/Tag.go b/plc4go/internal/opcua/Tag.go
index cdeb07df1b..a8496d0681 100644
--- a/plc4go/internal/opcua/Tag.go
+++ b/plc4go/internal/opcua/Tag.go
@@ -21,6 +21,7 @@ package opcua
 
 import (
 	"fmt"
+
 	apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
 	apiValues "github.com/apache/plc4x/plc4go/pkg/api/values"
 	readWriteModel "github.com/apache/plc4x/plc4go/protocols/opcua/readwrite/model"
diff --git a/plc4go/internal/opcua/Writer.go b/plc4go/internal/opcua/Writer.go
index 9f184d6b4f..5350678a0d 100644
--- a/plc4go/internal/opcua/Writer.go
+++ b/plc4go/internal/opcua/Writer.go
@@ -22,6 +22,9 @@ package opcua
 import (
 	"context"
 	"encoding/binary"
+	"runtime/debug"
+	"strconv"
+
 	apiModel "github.com/apache/plc4x/plc4go/pkg/api/model"
 	apiValues "github.com/apache/plc4x/plc4go/pkg/api/values"
 	readWriteModel "github.com/apache/plc4x/plc4go/protocols/opcua/readwrite/model"
@@ -29,10 +32,9 @@ import (
 	"github.com/apache/plc4x/plc4go/spi/options"
 	"github.com/apache/plc4x/plc4go/spi/utils"
 	spiValues "github.com/apache/plc4x/plc4go/spi/values"
+
 	"github.com/pkg/errors"
 	"github.com/rs/zerolog"
-	"runtime/debug"
-	"strconv"
 )
 
 type Writer struct {
diff --git a/plc4go/internal/opcua/common.go b/plc4go/internal/opcua/common.go
index b95237b6ce..61edead96b 100644
--- a/plc4go/internal/opcua/common.go
+++ b/plc4go/internal/opcua/common.go
@@ -20,11 +20,13 @@
 package opcua
 
 import (
+	"strconv"
+	"time"
+
 	readWriteModel "github.com/apache/plc4x/plc4go/protocols/opcua/readwrite/model"
+
 	"github.com/google/uuid"
 	"github.com/pkg/errors"
-	"strconv"
-	"time"
 )
 
 func generateNodeId(tag Tag) (readWriteModel.NodeId, error) {