Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BinaryExtensions = map[string]bool{ ".exe": true, ".dll": true, ".so": true, ".dylib": true, ".bin": true, ".obj": true, ".o": true, ".a": true, ".lib": true, ".pyc": true, ".pyo": true, ".pyd": true, ".class": true, ".jar": true, ".war": true, ".ear": true, ".png": true, ".jpg": true, ".jpeg": true, ".gif": true, ".bmp": true, ".ico": true, ".zip": true, ".tar": true, ".gz": true, ".rar": true, ".7z": true, ".pdf": true, }
List of extensions to exclude
Functions ¶
func IsBinaryFile ¶
IsBinaryFile detects if a file is binary based on its extension, mime type or content
Types ¶
Click to show internal directories.
Click to hide internal directories.