Documentation
¶
Overview ¶
base64 - a package that provides comfortable to use wrappers around existing "encoding/base64".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64 ¶
Base64 converts provided string or bytes value into base64 string. It's a wrapper around existing "base64.StdEncoding.EncodeToString([]byte(...))". Created to simplify work with base64 and provide convenient template function for "templatex".
func Base64Runtime ¶
func Bytes ¶
Bytes converts the given base64 string to a bytes value. Should be used in a known environment, when values are expected to be correct. Panics in case of failure. It's a wrapper around existing "base64.StdEncoding.DecodeString(...)". Created to simplify work with base64.
func String ¶
String converts the given base64 string to a string value. Should be used in a known environment, when values are expected to be correct. Panics in case of failure. It's a wrapper around existing "base64.StdEncoding.DecodeString(...)". Created to simplify work with base64 and provide convenient template function for "templatex".
Types ¶
This section is empty.