]> Cypherpunks.ru repositories - gostls13.git/commit
encoding: show the alphabet for base32 and base64
authorJoe Tsai <joetsai@digital-static.net>
Sun, 3 Sep 2023 03:38:49 +0000 (20:38 -0700)
committerGopher Robot <gobot@golang.org>
Sun, 3 Sep 2023 18:57:29 +0000 (18:57 +0000)
commit53739590571e66cbace8a6b388a79901cfb8fc3a
tree2647e4919e964fbbaf320cb1dd623f5229c20c7d
parent05d4b57c9fd082c8f68f454d1bb4ae26a3c7f5b9
encoding: show the alphabet for base32 and base64

There is not a great reason to hide the alphabet used
for StdEncoding, HexEncoding, and URLEncoding.

Although this is specified in RFC 4748,
showing it in GoDoc saves an extra click from going
to the RFC itself to see the alphabet being used.

Also, split exported and unexported constants apart
so that GoDoc renders more cleanly.

Fixes #55126

Change-Id: I03bfa607fb6c3df7f757e33fc0f4ec2b233de1a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/525296
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
src/encoding/base32/base32.go
src/encoding/base64/base64.go
src/encoding/base64/base64_test.go