safeid

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package safeid checks identifiers taken from untrusted input, such as a client's request ID, before they are logged or stored.

Index

Constants

View Source
const MaxLen = 128

MaxLen is the longest identifier Valid accepts, in bytes.

Variables

This section is empty.

Functions

func Valid

func Valid(id string) bool

Valid reports whether id is 1 to MaxLen bytes of ASCII letters, digits or ".", "_", ":", "-".

Types

This section is empty.

Jump to

Keyboard shortcuts

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