go fmt base2.go

This commit is contained in:
Gowtham Gopalakrishnan
2019-02-10 16:49:34 +05:30
parent 0a49bd57bb
commit fca1c65daf

View File

@@ -34,7 +34,7 @@ func encodeBinary(dst []byte, src []byte) {
// decodeBinaryString takes multibase binary representation
// and returns a byte array
func decodeBinaryString(s string) ([]byte, error) {
if len(s) % 8 != 0 {
if len(s)%8 != 0 {
return nil, fmt.Errorf("cannot decode multibase: %s",
"length should be a multiple of 4")
}