LZ-string decoder in go
I was playing with https://flems.io/ and wondered how it stores data.
- locally it uses localstorage
- but state is preserved in url (bookmarkable POC)
Example link: http://flems.io
Usage
$ curl -L https://gist.githubusercontent.com/lalyos/ccc6473ffaadb3cddc9bd0422126f761/raw/lzstring.txt \
| go run lz.go