Custom library for encoding text in Go language