speps / go-hashids

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

NewWithData should not panic but return error #29

Closed matthewvalimaki closed 7 years ago

matthewvalimaki commented 7 years ago

NewWithData should return (*HashID, error) so that error cases can be handled.