From bc8c7d1e12e2a945f65924f6c3cf5708a2eafbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Mon, 27 Mar 2023 21:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E5=A4=84receiver?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/base64.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/base64.go b/utils/base64.go index e5e34b4..4704a27 100644 --- a/utils/base64.go +++ b/utils/base64.go @@ -9,17 +9,17 @@ type Base64 struct { // Encode // 编码 -// @receiver q +// @receiver b // @return string -func (q Base64) Encode() string { - return base64.StdEncoding.EncodeToString(q.Content) +func (b Base64) Encode() string { + return base64.StdEncoding.EncodeToString(b.Content) } // Decode // 解码 -// @receiver q +// @receiver b // @return string -func (q Base64) Decode() string { - res, _ := base64.StdEncoding.DecodeString(string(q.Content)) +func (b Base64) Decode() string { + res, _ := base64.StdEncoding.DecodeString(string(b.Content)) return string(res) }