Documentation ¶
Overview ¶
Description: This package provides utility functions for string manipulation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertQueryStringToMap ¶ added in v1.19.4
ConvertQueryStringToMap converts a query string to a map[string][]string.
It returns an error if the query string cannot be parsed.
func ConvertToType ¶
ConvertToType converts string value to the appropriate type.
It tries to convert to primitive.ObjectID, bool, int, float, time.Time, and if none of these succeed, it defaults to string.
Types ¶
type NormalizeOpts ¶ added in v1.36.19
type NormalizeOpts struct { ToLower bool // Convert to lowercase. RemoveDiacs bool // Remove diacritics. TrimSpace bool // Remove leading and trailing whitespace. RemovePunct bool // Remove punctuation. RemoveSpec bool // Remove special characters. RemoveDigits bool // Remove digits. RemoveNonASCII bool // Remove non-ASCII characters. }
NormalizeOpts represents options for customizing the normalization process.
Click to show internal directories.
Click to hide internal directories.