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

6
doc.go
View File

@@ -5,7 +5,7 @@
//
/*
A cross-platform serial library for the go language.
Package serial is a cross-platform serial library for the go language.
The canonical import for this library is go.bug.st/serial so the import line
is the following:
@@ -43,9 +43,9 @@ The following snippets shows how to declare a configuration for 57600_E71:
mode := &serial.Mode{
BaudRate: 57600,
Parity: serial.PARITY_EVEN,
Parity: serial.EvenParity,
DataBits: 7,
StopBits: serial.STOPBITS_ONE,
StopBits: serial.OneStopBit,
}
The configuration can be changed at any time with the SetMode function: