input

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 3 Imported by: 0

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

func ReadFile(path string) string

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

func ReadString(content string) string

ReadString passes through string content unchanged. This function exists for API consistency with ReadFile.

Types

This section is empty.

Jump to

Keyboard shortcuts

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