Skip to content

Commit

Permalink
chore: Reformatted imports in go
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Sep 8, 2024
1 parent 2f85760 commit 24dc0f6
Show file tree
Hide file tree
Showing 126 changed files with 151 additions and 276 deletions.
10 changes: 5 additions & 5 deletions plc4go/internal/bacnetip/ApplicationLayerMessageCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ package bacnetip
import (
"context"
"fmt"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/app"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/appservice"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/iocb"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"net"
"net/url"
"time"

"github.com/pkg/errors"
"github.com/rs/zerolog"

"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/app"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/appservice"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/iocb"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
"github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
"github.com/apache/plc4x/plc4go/spi/transports/udp"
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
package apdu

import (
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

var APDUTypes map[readWriteModel.ApduType]func() Decoder
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu_APCI.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/debugging"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/deleteme"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/globals"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type APCI interface {
Expand Down
5 changes: 2 additions & 3 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu_APDU.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/debugging"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/globals"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type APDU interface {
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu_IAmRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
package apdu

import (
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/constructeddata"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/primitivedata"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type IAmRequest struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ package apdu
import (
"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

// UnconfirmedRequestSequenceContract provides a set of functions which can be overwritten by a sub struct
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu_WhoIsRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ package apdu
import (
"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/constructeddata"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/primitivedata"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type WhoIsRequest struct {
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/apdu/apdu__APDU.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/globals"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

// _APDU masks the Encode() and Decode() functions of the APDU
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/app/app_Application.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/apdu"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/appservice"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/capability"
Expand All @@ -35,6 +33,7 @@ import (
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/core"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type ApplicationRequirements interface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/appservice"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/iocb"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

//go:generate plc4xGenerator -type=ApplicationIOController -prefix=app_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
package appservice

import (
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

//go:generate plc4xGenerator -type=DeviceInfo -prefix=app_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

// DeviceInfoCacheKey caches by either Instance, PduSource of both
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/apdu"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comm"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

//go:generate plc4xGenerator -type=ApplicationServiceAccessPoint -prefix=appservice_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi/options"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi/options"
)

type ClientSSM struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comm"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/task"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type SSMState uint8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi/options"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi/options"
)

type ServerSSM struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comm"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/globals"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/local/device"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

//go:generate plc4xGenerator -type=StateMachineAccessPoint -prefix=appservice_
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/basetypes/basetypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/constructeddata"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/primitivedata"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type vendorRange struct {
Expand Down
3 changes: 1 addition & 2 deletions plc4go/internal/bacnetip/bacgopes/bvll/bvll_BVLCI.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/debugging"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type BVLCIRequirements interface {
Expand Down
5 changes: 2 additions & 3 deletions plc4go/internal/bacnetip/bacgopes/bvll/bvll_BVLPDU.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ import (

"github.com/pkg/errors"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type BVLPDU interface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
readWriteModel "github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type DeleteForeignDeviceTableEntry struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (

"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type DistributeBroadcastToNetwork struct {
Expand Down
5 changes: 2 additions & 3 deletions plc4go/internal/bacnetip/bacgopes/bvll/bvll_ForwardedNPDU.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type ForwardedNPDU struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (

"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type OriginalBroadcastNPDU struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (

"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
"github.com/apache/plc4x/plc4go/spi"
)

type OriginalUnicastNPDU struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ import (

"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type ReadBroadcastDistributionTable struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type ReadBroadcastDistributionTableAck struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ import (

"github.com/pkg/errors"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type ReadForeignDeviceTable struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"

"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"

. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/comp"
. "github.com/apache/plc4x/plc4go/internal/bacnetip/bacgopes/pdu"
"github.com/apache/plc4x/plc4go/protocols/bacnetip/readwrite/model"
)

type ReadForeignDeviceTableAck struct {
Expand Down
Loading

0 comments on commit 24dc0f6

Please sign in to comment.