Coder Social home page Coder Social logo

Please support big int about go-hashids HOT 3 CLOSED

speps avatar speps commented on July 26, 2024
Please support big int

from go-hashids.

Comments (3)

bbq-oba avatar bbq-oba commented on July 26, 2024 7

uint64 please

from go-hashids.

dolmen avatar dolmen commented on July 26, 2024

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.

msztolcman avatar msztolcman commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.