kurz.go
kurz.go copied to clipboard
Short url keys integers not characters
Very nice work. However, my short url keys are integers, how can I get character urls like:
http://127.0.0.1/fVn3K
It is a global counter. Every new URL increases the counter by one. see the counter key in redis for the current value. That value is then encoded using the custom codec in codec.go. Basically you will get letters, when you have enough urls in your instance.