Documentation
¶
Overview ¶
Package utils provides minimal utility functions for string conversion, timestamp generation, and file system helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDir ¶
EnsureDir creates the directory at path (including parents) if it does not already exist. Returns nil if the directory already exists.
func FileExists ¶
FileExists reports whether the named file or directory exists.
func TimestampPrefix ¶
func TimestampPrefix() string
TimestampPrefix returns the current time formatted as YYYYMMDDHHMMSS.
func ToSnakeCase ¶
ToSnakeCase converts a CamelCase or mixed-case string to snake_case. For example, "CreateUsers" becomes "create_users" and "getHTTPResponse" becomes "get_http_response".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.