b64

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package b64 is base64url as every KeyGrant token is written (RFC 4648 section 5, no padding), read only in its canonical form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

Decode reads CANONICAL base64url: the URL-safe alphabet, no padding, and nothing Encode would not have written (no stray bits in the last character). Anything else is an error. Go's decoder skips CR and LF even in strict mode; the alphabet check and the round trip refuse them.

func Encode

func Encode(b []byte) string

Encode is base64url with no padding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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