Skip to main content

Module helpers

Module helpers 

Source

Functionsยง

get_base_dir
Get the base directory (parent of the executable), cached via OnceLock
get_config
Runtime-safe config loader
html_escape
Escape HTML special characters to prevent XSS
read_lock
Safe read lock acquisition with context for error messages
write_lock
Safe write lock acquisition with context for error messages