Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support big int #50

Closed
Pengfei00 opened this issue Nov 25, 2018 · 3 comments
Closed

Please support big int #50

Pengfei00 opened this issue Nov 25, 2018 · 3 comments

Comments

@Pengfei00
Copy link

thx

@bbq-oba
Copy link

bbq-oba commented Jan 17, 2019

uint64 please

@dolmen
Copy link
Collaborator

dolmen commented Dec 9, 2019

HashIDs support only arrays of int64. That's how they are designed. And cross-language compatibility of HashIDs is a major feature.

But you can still encode big int or uint64 as an array of int64 on top of this library.

@msztolcman
Copy link

Hello,
I've added support for BigInt on my own, however @dolmen's comment about cross-lang compatibility stops me from PR here. If anyone is interested, then my solutions is on https://github.com/msztolcman/go-hashids - comments are welcome, I'm not fluent in GoLang :) Maybe it's not best implementation and bad vars naming in few places, but I will fix this later.

Most important part for me was to have allowed "translation" from UUID to hashid. It works well in PHP, and Go version also was required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants