package
0.5.0
Repository: https://github.com/qri-io/starlib.git
Documentation: pkg.go.dev

# README

base64

base64 defines base64 encoding & decoding functions, often used to represent binary as text.

Functions

decode(src,encoding="standard") string

parse base64 input, giving back the plain string representation

parameters:

nametypedescription
srcstringsource string of base64-encoded text
encodingstringoptional. string to set decoding dialect. allowed values are: standard,standard_raw,url,url_raw

encode(src,encoding="standard") string

return the base64 encoding of src

parameters:

nametypedescription
srcstringsource string to encode to base64
encodingstringoptional. string to set encoding dialect. allowed values are: standard,standard_raw,url,url_raw

# Functions

LoadModule loads the base64 module.

# Constants

ModuleName defines the expected name for this Module when used in starlark's load() function, eg: load('encoding/base64.star', 'base64').

# Variables

Encodings is a map of strings to encoding formats.