lytics / base62

base62 (ie, url safe) encoding golang lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base62.go

An attempt at a go library to provide Base62 encoding, perfect for URL safe values, and url shorteners.

	// Encode a value
	urlVal := "http://www.biglongurl.io/?utm_content=content&utm_campaign=campaign"
	encodedUrl := base62.StdEncoding.EncodeToString([]byte(urlVal))
	

	// Unencoded it
	byteUrl, err := base62.StdEncoding.DecodeString(encodedUrl)

About

base62 (ie, url safe) encoding golang lib

License:MIT License


Languages

Language:Go 96.9%Language:Shell 3.1%