stringutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(s string) string

Normalize returns a lowercased, trimmed, accent-stripped, and whitespace-collapsed version of s.

func ParseFlexibleDate

func ParseFlexibleDate(s string) (time.Time, error)

ParseFlexibleDate tries to parse s using each of the supported date formats in order: DD/MM/YYYY, DD-MM-YYYY, YYYY-MM-DD. Returns the first successful parse as UTC. Returns (time.Time{}, error) if none match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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