mirror of
https://github.com/fumiama/go-base16384.git
synced 2026-06-09 12:30:50 +08:00
优化 api
This commit is contained in:
@@ -13,8 +13,8 @@ func EncodeString(s string) []byte {
|
||||
return Encode(helper.StringToBytes(s))
|
||||
}
|
||||
|
||||
func DecodeString(s string) []byte {
|
||||
return Decode(helper.StringToBytes(s))
|
||||
func DecodeString(d []byte) string {
|
||||
return helper.BytesToString(Decode(d))
|
||||
}
|
||||
|
||||
func Encode(b []byte) (encd []byte) {
|
||||
|
||||
Reference in New Issue
Block a user