validate

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package validate checks that scratchpad entry indexes are within valid bounds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIndex

func ValidateIndex(n int, entries []string) error

ValidateIndex checks that n is a valid 1-based index into entries.

Parameters:

  • n: 1-based entry index
  • entries: The entries to validate against

Returns:

  • error: Non-nil if n is out of range

Types

This section is empty.

Jump to

Keyboard shortcuts

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