package
Version:
v0.0.0-...-157c9c8
Opens a new window with list of versions in this module.
Published: Apr 26, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DefaultLength is the length that will be generated if no length is given to
New
Key wraps a slice of bytes to help with generating and encoding.
New creates a key using crypto/rand of the specified length. If the length
is 0 then the default length is used.
String creates a key from a base64 URLEncoded string.
Code converts the key to a string of Go code.
String fulfills stringer and encodes the key using base64 URLEncoding.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.