Skip to content

Commit

Permalink
Add crude travis check for gofmt; format all sources
Browse files Browse the repository at this point in the history
The check ensures no gofmt regression occurs. Formatting the code makes everyone happy.
  • Loading branch information
maruel committed Mar 27, 2017
1 parent 1a3c52c commit 88addd4
Show file tree
Hide file tree
Showing 17 changed files with 257 additions and 440 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- echo "Ensuring code is well formatted"; ! gofmt -s -d . | read
- ./ci/travis.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
80 changes: 40 additions & 40 deletions api/robeaux/robeaux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions platforms/intel-iot/edison/arduino_pinmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,113 +3,113 @@ package edison
import "gobot.io/x/gobot/sysfs"

var arduinoPinMap = map[string]sysfsPin{
"0": sysfsPin{
"0": {
pin: 130,
resistor: 216,
levelShifter: 248,
pwmPin: -1,
mux: []mux{},
},
"1": sysfsPin{
"1": {
pin: 131,
resistor: 217,
levelShifter: 249,
pwmPin: -1,
mux: []mux{},
},
"2": sysfsPin{
"2": {
pin: 128,
resistor: 218,
levelShifter: 250,
pwmPin: -1,
mux: []mux{},
},
"3": sysfsPin{
"3": {
pin: 12,
resistor: 219,
levelShifter: 251,
pwmPin: 0,
mux: []mux{},
},

"4": sysfsPin{
"4": {
pin: 129,
resistor: 220,
levelShifter: 252,
pwmPin: -1,
mux: []mux{},
},
"5": sysfsPin{
"5": {
pin: 13,
resistor: 221,
levelShifter: 253,
pwmPin: 1,
mux: []mux{},
},
"6": sysfsPin{
"6": {
pin: 182,
resistor: 222,
levelShifter: 254,
pwmPin: 2,
mux: []mux{},
},
"7": sysfsPin{
"7": {
pin: 48,
resistor: 223,
levelShifter: 255,
pwmPin: -1,
mux: []mux{},
},
"8": sysfsPin{
"8": {
pin: 49,
resistor: 224,
levelShifter: 256,
pwmPin: -1,
mux: []mux{},
},
"9": sysfsPin{
"9": {
pin: 183,
resistor: 225,
levelShifter: 257,
pwmPin: 3,
mux: []mux{},
},
"10": sysfsPin{
"10": {
pin: 41,
resistor: 226,
levelShifter: 258,
pwmPin: 4,
mux: []mux{
mux{263, sysfs.HIGH},
mux{240, sysfs.LOW},
{263, sysfs.HIGH},
{240, sysfs.LOW},
},
},
"11": sysfsPin{
"11": {
pin: 43,
resistor: 227,
levelShifter: 259,
pwmPin: 5,
mux: []mux{
mux{262, sysfs.HIGH},
mux{241, sysfs.LOW},
{262, sysfs.HIGH},
{241, sysfs.LOW},
},
},
"12": sysfsPin{
"12": {
pin: 42,
resistor: 228,
levelShifter: 260,
pwmPin: -1,
mux: []mux{
mux{242, sysfs.LOW},
{242, sysfs.LOW},
},
},
"13": sysfsPin{
"13": {
pin: 40,
resistor: 229,
levelShifter: 261,
pwmPin: -1,
mux: []mux{
mux{243, sysfs.LOW},
{243, sysfs.LOW},
},
},
}
Loading

0 comments on commit 88addd4

Please sign in to comment.