go-hashids
go-hashids copied to clipboard
Is it possible to check one string is a hashid?
I believe this does what you need.
As @BentCoder wrote, DecodeWithError allows you to attempt decoding of a string.