Golang's encoding library clone.