Help us shape the future of Go! Take the 2026 Go Developer Survey

security

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeLabel

func SanitizeLabel(label string) string

SanitizeLabel strips non-printable characters from label and truncates it to maxLabelLen runes.

func ValidatePath

func ValidatePath(root, target string) error

ValidatePath checks that target is contained within root (prevents path traversal). Both paths are resolved to absolute paths before comparison.

Types

This section is empty.

Jump to

Keyboard shortcuts

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