my supplimentals of hashids
Create original HashID
handle by function func CreateHashID(salt string, alphabet string, minlength int) (h *(hashids.HashID), err error)
- func CreateHID(salt string, alphabet string, minlength int) (h *hidType, err error)
- func (h *hidType) Encode(i int) (str string, err error)
- func (h *hidType) EncodeInt64(i int64) (str string, err error)
- func (h *hidType) Decode(str string) (i int, err error)
- func (h *hidType) DecodeInt64(str string) (i int64, err error)
Refer test code.