key

package
v0.505.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package key implements JaWS key encoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(b []byte, key Key) []byte

Append appends key in the text form used by JaWS to b.

Types

type Key

type Key uint64

Key identifies a JaWS request or session.

A zero Key is invalid and encodes as an empty string. Non-zero keys encode as base-32 text for use in JaWS URLs, HTML metadata and session cookies.

func Parse

func Parse(s string) Key

Parse parses a JaWS key from its text form.

Any trailing "/..." path suffix is ignored. It returns zero if s does not contain a valid base-32 key.

func (Key) String

func (key Key) String() string

String returns key in the text form used by JaWS.

Jump to

Keyboard shortcuts

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