base64

package
v0.0.0-...-576eb72 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package base64 implements base64 encoding/decoding stripping any = used for padding, thus producing invalid base64 but saving a few bytes. It's mainly used for encoding values in other parts of gondola (like gnd.la/cookies), but you can feel free to use its functions. Just keep in mind that any value encoded with Encode() must be decoded with Decode(), rather than with the standard encoding/base64 package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(src string) ([]byte, error)

Decode decodes the given string into a []byte using base64 URL encoding. The string does not need to be correctly padded.

func Encode

func Encode(src []byte) string

Encode encodes the given []byte into a base64 string, using URL encoding and removing any = character used for padding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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