diff --git a/cmd/rc-led/rc-led.go b/cmd/rc-led/rc-led.go index 0f373b4..09fe180 100644 --- a/cmd/rc-led/rc-led.go +++ b/cmd/rc-led/rc-led.go @@ -3,7 +3,7 @@ package main import ( "flag" "github.com/cyrilix/robocar-base/cli" - "github.com/cyrilix/robocar-led/part" + "github.com/cyrilix/robocar-led/pkg/part" "go.uber.org/zap" "log" "os" diff --git a/led/led.go b/pkg/led/led.go similarity index 100% rename from led/led.go rename to pkg/led/led.go diff --git a/led/led_test.go b/pkg/led/led_test.go similarity index 100% rename from led/led_test.go rename to pkg/led/led_test.go diff --git a/part/part.go b/pkg/part/part.go similarity index 96% rename from part/part.go rename to pkg/part/part.go index f5bad99..2b33293 100644 --- a/part/part.go +++ b/pkg/part/part.go @@ -3,7 +3,7 @@ package part import ( "fmt" "github.com/cyrilix/robocar-base/service" - "github.com/cyrilix/robocar-led/led" + "github.com/cyrilix/robocar-led/pkg/led" "github.com/cyrilix/robocar-protobuf/go/events" mqtt "github.com/eclipse/paho.mqtt.golang" "github.com/golang/protobuf/proto" @@ -27,8 +27,8 @@ func NewPart(client mqtt.Client, driveModeTopic, recordTopic string) *LedPart { } type LedPart struct { - led led.ColoredLed - client mqtt.Client + led led.ColoredLed + client mqtt.Client onDriveModeTopic string onRecordTopic string diff --git a/part/part_test.go b/pkg/part/part_test.go similarity index 100% rename from part/part_test.go rename to pkg/part/part_test.go