References:
I wanted to parse JS sourcemaps in golang and understand how they really worked. I could not find a good vlq encoder/decoder in golang that I could understand so I wrote my own.
import github.com/sampsonbryce/go-vlq
toEncode := []int{0, 0, 0, 0}
encoded := vlq.Encode(toEncode) // AAAA
decoded := vlq.Decode(encoded) // [0, 0, 0, 0]