package base64
import "codeberg.org/anaseto/goal/encoding/base64"
Package base64 provides base64 encoding support for Goal.
Index ¶
Functions ¶
func Import ¶
Import registers in the given Context the variadic functions from this package with default names and stores them into global variables. The following functions are defined:
base64.enc[s] : encode string in standard base64 encoding
base64.urlenc[s] : encode string in alternate url base64 encoding (no padding)
base64.dec[s] : decode string in standard base64 encoding
base64.urldec[s] : decode string in alternate url base64 encoding (no padding)
Decoding may return an error value dict with the partially decoded data (key "dec") along with the error message (key "msg").
A non-empty prefix can be provided, but "base64." is already a part of the default names, so it will be added as an extra prefix.
Source Files ¶
base64.go unsafe.go
- Version
- v1.3.0 (latest)
- Published
- Jun 22, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 6 days ago –
Tools for package owners.