base64

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: ISC Imports: 3 Imported by: 0

README

The Goal extension package base64 provides base64 encoding functionality.

Documentation

Overview

Package base64 provides base64 encoding support for Goal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx *goal.Context, pfx string)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL