Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MaxFileSize is the default maximum allowed file size (100MB)
MaxFileSize = 100 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func CheckFileSize ¶
CheckFileSize verifies if a file is within acceptable size limits
func SafeOpenFile ¶
SafeOpenFile opens a file after checking its size
func SafeReadFile ¶
SafeReadFile reads a file after checking its size
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.