Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxFileSizeByExt = map[string]int64{
".md": 1_048_576,
".docx": 10_485_760,
".html": 5_242_880,
".htm": 5_242_880,
".pdf": 52_428_800,
".go": 1_048_576,
".py": 1_048_576,
".rb": 1_048_576,
".js": 1_048_576,
".jsx": 1_048_576,
".ts": 1_048_576,
".tsx": 1_048_576,
".svelte": 1_048_576,
".vue": 1_048_576,
".rs": 1_048_576,
".c": 1_048_576,
".cc": 1_048_576,
".h": 1_048_576,
".cpp": 1_048_576,
".cxx": 1_048_576,
".hpp": 1_048_576,
".hh": 1_048_576,
".java": 1_048_576,
".swift": 1_048_576,
".cs": 1_048_576,
".php": 1_048_576,
".kt": 1_048_576,
".kts": 1_048_576,
".dart": 1_048_576,
".lua": 1_048_576,
".luau": 1_048_576,
".pas": 1_048_576,
".pp": 1_048_576,
".sql": 1_048_576,
".liquid": 1_048_576,
}
MaxFileSizeByExt maps each supported extension to its physical-file size cap in bytes. Markdown keeps the historic 1 MB limit; binary formats allow larger physical files because compression ratios and per-format security guards (zip-bomb, page cap) are enforced inside the extractor.
Functions ¶
func SupportedExt ¶
SupportedExt reports whether the lower-cased file extension is handled by DocGraph's indexing pipeline.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.