Documentation
¶
Overview ¶
Package input provides file and string input handling for comment detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFile ¶
ReadFile reads file content with UTF-8 to Latin-1 fallback.
Returns:
- File content as string on success
- Empty string if file not found (graceful handling)
Notes:
- UTF-8 decode failure falls back to latin-1
- FileNotFoundError returns empty string (graceful handling)
func ReadString ¶
ReadString passes through string content unchanged. This function exists for API consistency with ReadFile.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.