Documentation
¶
Overview ¶
Package filecheck validates that file content is safe to interpret as CalcMark. It provides defense-in-depth against binary files renamed with .cm extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCalcMarkExtension ¶
IsCalcMarkExtension reports whether the file at path has a recognized CalcMark extension (.cm or .calcmark, case-insensitive).
func ValidateContent ¶
ValidateContent checks that data is valid text suitable for CalcMark. It rejects known binary formats (magic-number check), null bytes, and data that is not valid UTF-8. This is a defense-in-depth measure: even if a file has a .cm extension, its content must be safe to interpret.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.