1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 08:12:26 +08:00

doc: update doc for new added functions

This commit is contained in:
dudaodong
2024-03-04 16:41:54 +08:00
parent e95d7c82cd
commit 0d29f5437a
4 changed files with 269 additions and 274 deletions

View File

@@ -466,12 +466,6 @@ func TestGbkToUtf8(t *testing.T) {
assert.Equal("hello", string(utf8Data))
}
func decodeBase64(data []byte) ([]byte, error) {
buf := make([]byte, base64.StdEncoding.DecodedLen(len(data)))
n, err := base64.StdEncoding.Decode(buf, data)
return buf[:n], err
}
func TestToStdBase64(t *testing.T) {
t.Parallel()
assert := internal.NewAssert(t, "TestToStdBase64")