Fix vet warnings about conversion of int to string

Fixes issue #38
This commit is contained in:
gammazero
2020-11-19 17:38:08 -08:00
parent e2260b5ff3
commit 2985033078
3 changed files with 7 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ func Encode(base Encoding, data []byte) (string, error) {
switch base {
case Identity:
// 0x00 inside a string is OK in golang and causes no problems with the length calculation.
return string(Identity) + string(data), nil
return string(rune(Identity)) + string(data), nil
case Base2:
return string(Base2) + binaryEncodeToString(data), nil
case Base16: