Fixed a bunch of golint warnings (this needs an API change)

This commit is contained in:
Cristian Maglie
2016-01-01 23:23:20 +01:00
parent e90aca32c8
commit 485b2f86a8
9 changed files with 104 additions and 88 deletions

View File

@@ -17,13 +17,12 @@ func ExampleSerialPort_SetMode() {
}
mode := &serial.Mode{
BaudRate: 9600,
Parity: serial.PARITY_NONE,
Parity: serial.NoParity,
DataBits: 8,
StopBits: serial.STOPBITS_ONE,
StopBits: serial.OneStopBit,
}
if err := port.SetMode(mode); err != nil {
log.Fatal(err)
}
fmt.Println("Port set to 9600 N81")
}