Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dotnotation ¶
func RelativeFileSizeToBytes ¶ added in v0.7.0
RelativeFileSizeToBytes converts a human-readable file size string (e.g., "10MB", "2GB") into its equivalent size in bytes as an int64. Supported units are "TB", "GB", "MB", "KB", and "B" (case-insensitive). If the input string cannot be parsed, the function returns the provided `defaultSize`.
Example inputs: "10MB", "2 gb", "512kb", "100b"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.