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

@@ -31,9 +31,9 @@ func Example_sendAndReceive() {
// Open the first serial port detected at 9600bps N81
mode := &serial.Mode{
BaudRate: 9600,
Parity: serial.PARITY_NONE,
Parity: serial.NoParity,
DataBits: 8,
StopBits: serial.STOPBITS_ONE,
StopBits: serial.OneStopBit,
}
port, err := serial.OpenPort(ports[0], mode)
if err != nil {
@@ -63,4 +63,3 @@ func Example_sendAndReceive() {
fmt.Printf("%v", string(buff[:n]))
}
}