validate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package validate provides shared validation helpers.

Index

Constants

This section is empty.

Variables

View Source
var SessionIDPattern = regexp.MustCompile(`^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$`)

SessionIDPattern matches valid Copilot CLI session identifiers. Format: starts with alphanumeric, followed by up to 127 alphanumeric/dot/hyphen/underscore chars.

Functions

func SessionID

func SessionID(id string) bool

SessionID reports whether id is a valid session identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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