validation

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath

func ExpandPath(pathStr string) (string, error)

ExpandPath expands ~ to home directory and resolves to absolute path

func ParseBool

func ParseBool(value any) (bool, error)

ParseBool converts various boolean representations to bool

func SanitizeString

func SanitizeString(input string) string

SanitizeString removes or escapes dangerous characters from string input

func ValidateOption

func ValidateOption(opt catalog.OptionMetadata, value any) error

ValidateOption validates a user-provided value against option metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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