Skip to content

Commit

Permalink
Fix go test ./...
Browse files Browse the repository at this point in the history
Make all examples to not be built by default by adding the build tag 'example'.
Some files were automatically reformatted by goimports upon saving.
  • Loading branch information
maruel committed Mar 13, 2017
1 parent b7791a9 commit 50d5869
Show file tree
Hide file tree
Showing 156 changed files with 653 additions and 29 deletions.
4 changes: 4 additions & 0 deletions examples/ardrone.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
6 changes: 5 additions & 1 deletion examples/ardrone_face_tracking.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand All @@ -7,10 +11,10 @@ import (
"runtime"
"time"

cv "github.com/lazywei/go-opencv/opencv"
"gobot.io/x/gobot"
"gobot.io/x/gobot/platforms/opencv"
"gobot.io/x/gobot/platforms/parrot/ardrone"
cv "github.com/lazywei/go-opencv/opencv"
)

func main() {
Expand Down
4 changes: 4 additions & 0 deletions examples/ardrone_ps3.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/audio.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/batty.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/bb8-collision.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/bb8.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_basic_direct_pin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_blink.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_blink_usr_led.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_blinkm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_button.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_direct_pin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_grove_accelerometer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_led_brightness.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_led_brightness_with_analog_input.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_makey_button.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/beaglebone_servo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/bebop.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/bebop_ps3.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/bebop_ps3_video.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

/*
This example will connect to the Parrot Bebop allowing you to control
it using a PS3 controller.
Expand Down
4 changes: 4 additions & 0 deletions examples/bebop_rtp_video.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

/*
This example will connect to the Parrot Bebop and streams the drone video
via the RTP protocol.
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_battery.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_device_info.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_firmata_blink.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

/*
To run this example, pass the BLE address or BLE name as first param:
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_generic_access.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_multiple_generic.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

/*
To run this example, pass the BLE addresses or BLE names as first param:
Expand Down
4 changes: 4 additions & 0 deletions examples/ble_multiple_info.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

/*
To run this example, pass the BLE addresses or BLE names as first param:
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_blink.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_blinkm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_button.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_button_led.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_drv2605l.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_grove_accelerometer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_grove_lcd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_mpu6050.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_tsl2561.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/chip_wiichuck.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/digispark_api.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/digispark_blink.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/digispark_led_brightness.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions examples/digispark_servo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.

package main

import (
Expand Down
Loading

0 comments on commit 50d5869

Please sign in to comment.