diff --git a/examples/audio.go b/examples/audio.go index 3a5e7417..7a343dd0 100644 --- a/examples/audio.go +++ b/examples/audio.go @@ -14,7 +14,7 @@ func main() { laser := audio.NewAudioDriver(e, "laser", "./examples/laser.mp3") work := func() { - gobot.Every(2 * time.Second, func() { + gobot.Every(2*time.Second, func() { laser.Play() }) } diff --git a/gobottest/gobottest.go b/gobottest/gobottest.go index 0a3a2e4a..68808dd2 100644 --- a/gobottest/gobottest.go +++ b/gobottest/gobottest.go @@ -2,12 +2,12 @@ package gobottest import ( "fmt" + "os" + "os/exec" "reflect" "runtime" "strings" "testing" - "os" - "os/exec" ) var errFunc = func(t *testing.T, message string) { diff --git a/platforms/audio/audio_driver_test.go b/platforms/audio/audio_driver_test.go index 7097771b..84b9abbc 100644 --- a/platforms/audio/audio_driver_test.go +++ b/platforms/audio/audio_driver_test.go @@ -3,8 +3,8 @@ package audio import ( - "testing" "os/exec" + "testing" "github.com/hybridgroup/gobot/gobottest" )