Documentation ¶
Overview ¶
Package utils has general utility functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountDecimal ¶
ByteCountDecimal generates human readable file sizes and returns a string
func GetAllIPAdresses ¶
GetAllIPAdresses will return a map of interface and associated ipv4 addresses for displaying reasons
func GetInterfaceIpv4Addr ¶
GetInterfaceIpv4Addr will return the ip address by name
func HashPassword ¶
func HashPassword()
HashPassword will take a plaintext masked password and return a bcrypt hash This is meant to be used with the filebased access via .goshs file
func MimeByExtension ¶
MimeByExtension returns the mimetype string depending on the filename and its extension
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.