Comments (3)
uint64 please
from go-hashids.
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.
from go-hashids.
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.
from go-hashids.
Related Issues (20)
- hashing uuids? HOT 2
- DecodingWithError does not produce error HOT 5
- NewWithData should not panic but return error
- Alphabet allows spaces
- Ignoring NewWithData error leads to runtime errors HOT 1
- Fix for #28 just broke MinLength HOT 4
- min length HOT 3
- Push a new tag please HOT 1
- Not compatible with JS/PHP version HOT 8
- Please add a release tag (for better compatibility with go dep) HOT 2
- Epoch hashing HOT 1
- import error
- Is it possible to check one string is a hashid? HOT 2
- allow numbers only alphabet HOT 2
- Create v2.0.1, a valid go module version HOT 14
- Please tell if the implementation is thread safe HOT 1
- The calculation result of hexadecimal string is different from python or javascript
- Look like this project is no longer being maintained HOT 3
- Can it encode string?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-hashids.