修改一处receiver变量名称
This commit is contained in:
parent
138728ad34
commit
bc8c7d1e12
|
@ -9,17 +9,17 @@ type Base64 struct {
|
||||||
|
|
||||||
// Encode
|
// Encode
|
||||||
// 编码
|
// 编码
|
||||||
// @receiver q
|
// @receiver b
|
||||||
// @return string
|
// @return string
|
||||||
func (q Base64) Encode() string {
|
func (b Base64) Encode() string {
|
||||||
return base64.StdEncoding.EncodeToString(q.Content)
|
return base64.StdEncoding.EncodeToString(b.Content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode
|
// Decode
|
||||||
// 解码
|
// 解码
|
||||||
// @receiver q
|
// @receiver b
|
||||||
// @return string
|
// @return string
|
||||||
func (q Base64) Decode() string {
|
func (b Base64) Decode() string {
|
||||||
res, _ := base64.StdEncoding.DecodeString(string(q.Content))
|
res, _ := base64.StdEncoding.DecodeString(string(b.Content))
|
||||||
return string(res)
|
return string(res)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue