Skip to content

sampsonbryce/go-vlq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base64 VLQ Encode/Decode in Golang

Test

References:

Why?

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.

Usage

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]

About

A VLQ Encoder/Decoder for golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages