Documentation
¶
Overview ¶
Package content provides utilities for analyzing and manipulating file content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBinaryContent ¶
IsBinaryContent checks if content bytes contain binary data by looking for null bytes. It handles UTF-16 and UTF-32 BOMs specially to avoid false positives. This is a pure function with no state - import and use directly.
func SplitLines ¶
SplitLines splits content into lines, handling both \n and \r\n line endings. It returns a slice of strings, each representing a line without its line ending. If the content ends with a newline sequence, it does NOT return a trailing empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.