Documentation
¶
Overview ¶
Package base64 defines base64 encoding & decoding functions
outline: base64
base64 defines base64 encoding & decoding functions,
often used to represent binary as text.
path: encoding/base64
functions:
encode(src,encoding="standard") string
return the base64 encoding of src
params:
src string
source string to encode to base64
encoding string
optional. string to set encoding dialect. allowed values are: standard,standard_raw,url,url_raw
decode(src,encoding="standard") string
parse base64 input, giving back the plain string representation
params:
src string
source string of base64-encoded text
encoding string
optional. string to set decoding dialect. allowed values are: standard,standard_raw,url,url_raw
Index ¶
Constants ¶
View Source
const ModuleName = "encoding/base64.star"
ModuleName defines the expected name for this Module when used in starlark's load() function, eg: load('encoding/base64.star', 'base64')
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
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.