Documentation
¶
Index ¶
- Constants
- func CalculateZipFileSize(data []byte) uint64
- func ContainsI(a string, b string) bool
- func ExtractHTMLTitleFromB64Html(body []byte) string
- func GetPlatformAgnosticNewline() string
- func IsDirectory(path string) bool
- func ParseHumanSize(size string) (int64, error)
- func ParseISO8601(dateStr string) time.Time
- func PrettyPrintYAML(yamlStr string) (string, error)
- func RandomStringN(n int) string
Constants ¶
View Source
const ( // DirUserGroupRead is for directories that should be readable by owner and group (rwxr-x---) DirUserGroupRead fs.FileMode = 0750 // FilePublicRead is for files that should be world-readable (rw-r--r--) // Used for documentation, assets, and other public files FilePublicRead fs.FileMode = 0644 // FileUserReadWrite is for files that should only be readable by owner (rw-------) // Used for sensitive files like logs, secrets, and configuration FileUserReadWrite fs.FileMode = 0600 )
Common file permission constants used throughout the application. These constants provide named values for file and directory permissions instead of using magic numbers.
Variables ¶
This section is empty.
Functions ¶
func CalculateZipFileSize ¶
CalculateZipFileSize returns the aggregated uncompressed size of files inside a zip archive
func GetPlatformAgnosticNewline ¶
func GetPlatformAgnosticNewline() string
func IsDirectory ¶
func ParseHumanSize ¶
ParseHumanSize parses a human-readable size string (e.g., "500Mb", "2Gb") into bytes
func ParseISO8601 ¶
func PrettyPrintYAML ¶
func RandomStringN ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.