speps / go-hashids

Go (golang) implementation of http://www.hashids.org
MIT License
1.32k stars 109 forks source link

Panics instead of returning an error #2

Closed cgt closed 10 years ago

cgt commented 10 years ago

Instead of returning an error as is the convention in Go, this library panics when it encounters (non-exceptional) errors. A function being passed bad input is not exceptional, it is to be expected, and so an error should be returned if it happens.

speps commented 10 years ago

Fixed by #3