Documentation ¶
Overview ¶
Package base64 defines base64 encoding & decoding functions for Starlark.
Migrated from: https://github.com/qri-io/starlib/tree/master/encoding/base64
Index ¶
Constants ¶
View Source
const ModuleName = "base64"
ModuleName defines the expected name for this Module when used in starlark's load() function, eg: load('base64', 'encode')
Variables ¶
View Source
var Encodings = map[string]*gobase64.Encoding{ "standard": gobase64.StdEncoding, "standard_raw": gobase64.RawStdEncoding, "url": gobase64.URLEncoding, "url_raw": gobase64.RawURLEncoding, }
Encodings is a map of strings to encoding formats. It is used to select the encoding format for the base64 module. You can add your own encoding formats to this map.
Functions ¶
func LoadModule ¶
func LoadModule() (starlark.StringDict, error)
LoadModule loads the base64 module. It is concurrency-safe and idempotent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.