base62
base62 copied to clipboard
base62 (ie, url safe) encoding golang lib
base62 version:v0.0.0-20180808010106-0ee4de5a5d6d ``` base62.StdEncoding.DecodeString("sY1XtY6IMcuzmVs0c4h79XBSB7qVEtSt.WdkJg") ``` panic: runtime error: index out of range [27] with length 27 [recovered] panic: runtime error: index out of range [27] with length 27
In [`base62.go`](https://github.com/lytics/base62/blob/master/base62.go#L18): ``` const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-0123456789." ``` there are 64 symbols. UPD: I also noted there is a [fork](https://github.com/tuxxy/base62).
# Reference Strings For reference, I believe this is what base62 encoding and decoding should look like: ```txt Raw : "Hello, 世界" Base64: SGVsbG8sIOS4lueVjA (18 chars) Base62: 1wJfrzvdbuFbL65vcS (18 chars)...
Hey lytics. Nice project you have here. I'm using it in something for work. Unfortunately the latest merge here has broken tests. If you run `go test .` at this...