Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsNormalized ¶
ContainsNormalized checks if substr exists within s by: 1. Normalizing both strings 2. Using strings.Contains for comparison Empty strings or normalization failures return false.
func GenerateSchema ¶
func GenerateSchema[T any]() interface{}
GenerateSchema creates a JSON schema for validating data structures. It uses reflection to analyze the type T and build a schema that: - Disallows additional properties - Includes all fields directly (no references) - Adds descriptions from jsonschema tags.
func NormalizeString ¶
NormalizeString cleans up text by: 1. Removing diacritical marks (é -> e) 2. Removing all spaces 3. Converting to lowercase. Returns empty string if normalization fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.