davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
228 stars 52 forks source link

Several ignored errors #6

Open tylerstillwater opened 11 years ago

tylerstillwater commented 11 years ago

SetMode, Set, Clear all do not return any kind of error. This is bad.

Currently we have a mixture of "last error" and returning an error. We should probably choose a single approach and stick to it.

Go typically returns errors immediately and forces you to deal with them. I feel this might be the best approach.