代码拉取完成,页面将自动刷新
同步操作将从 golang-module/dongle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package dongle
const (
// BASE32 base32 encoding mode
BASE32 = "base32"
// BASE58 base58 encoding mode
BASE58 = "base58"
// BASE64 base64 encoding mode
BASE64 = "base64"
// HEX hex encoding mode
HEX = "hex"
)
// encode defines a encode struct.
type encode struct {
dongle
}
// newEncode returns a new encode instance.
func newEncode() encode {
return encode{}
}
// FromString encrypts from string.
func (e encode) FromString(s string) encode {
if s == emptyString {
return e
}
e.input = string2bytes(s)
return e
}
// FromBytes encrypts from byte slice.
func (e encode) FromBytes(b []byte) encode {
if len(b) > 0 {
e.input = b
}
return e
}
// ToString outputs as string.
func (e encode) ToString() string {
output := e.output
if output == nil {
output = e.input
}
return bytes2string(output)
}
// ToBytes outputs as byte slice.
func (e encode) ToBytes() []byte {
input, output := e.input, e.output
if len(input) == 0 {
return emptyBytes
}
return output
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。