interop: make Base*Encode
return string
This commit is contained in:
parent
37f7363386
commit
b319f127e7
1 changed files with 4 additions and 4 deletions
|
@ -19,8 +19,8 @@ func Deserialize(b []byte) interface{} {
|
||||||
|
|
||||||
// Base64Encode encodes given byte slice into a base64 string and returns byte
|
// Base64Encode encodes given byte slice into a base64 string and returns byte
|
||||||
// representation of this string. It uses `System.Binary.Base64Encode` interop.
|
// representation of this string. It uses `System.Binary.Base64Encode` interop.
|
||||||
func Base64Encode(b []byte) []byte {
|
func Base64Encode(b []byte) string {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// Base64Decode decodes given base64 string represented as a byte slice into
|
// Base64Decode decodes given base64 string represented as a byte slice into
|
||||||
|
@ -31,8 +31,8 @@ func Base64Decode(b []byte) []byte {
|
||||||
|
|
||||||
// Base58Encode encodes given byte slice into a base58 string and returns byte
|
// Base58Encode encodes given byte slice into a base58 string and returns byte
|
||||||
// representation of this string. It uses `System.Binary.Base58Encode` syscall.
|
// representation of this string. It uses `System.Binary.Base58Encode` syscall.
|
||||||
func Base58Encode(b []byte) []byte {
|
func Base58Encode(b []byte) string {
|
||||||
return nil
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// Base58Decode decodes given base58 string represented as a byte slice into
|
// Base58Decode decodes given base58 string represented as a byte slice into
|
||||||
|
|
Loading…
Reference in a new issue