package
2.0.0
Repository: https://github.com/mycontroller-org/server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AppendFile func.
ByteToMap converts []byte map[string]interface{}.
ByteToStruct converts []byte to interface.
ContainsString returns the available status.
copies from a location to another location.
copies from a location to another location with optional overwrite.
CreateDir func.
CustomSize returns a human-readable approximation of a size using custom format.
DeepClone a interface.
FindItem returns the availability status and location.
GetMapValue returns fetch and returns with a key.
GetMapValueString returns value, if not available returns defaultValue.
IsDirExists checks the directory availability.
IsFileExists checks the file availability.
JoinMap joins two maps.
JoinStringMap joins two string maps.
ListDirs func.
list the files recursively.
MapToStruct converts string to struct.
ParseSize returns an integer from a human-readable specification of a size using SI standard (eg.
ParseSizeWithDefault returns with default.
RandID returns random id.
RandIDWithLength returns random id with supplied charset.
RandUUID returns random uuid.
ReadFile func.
RemoveDir func.
RemoveFileOrEmptyDir func.
SmartSleep waits till the duration reaches.
StructToByte converts interface to []byte.
StructToMap converts struct to a map.
ToBinarySizeString returns a human-readable size in bytes, kibibytes, mebibytes, gibibytes, or tebibytes (eg.
ToDecimalSizeString with 2 decimal.
ToDecimalSizeStringWithPrecision allows the size to be in any precision,.
ToDuration converts the string duration to time.Duration, if failed returns the default.
ToStruct converts bytes to target struct.
UpdatePagination updates if nil.
ValidDuration verifies the duration, if it hits error returns the default duration.
WriteFile func.

# Constants

See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
Decimal.
Binary.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
contants.
contants.
contants.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.