package
19.10.0+incompatible
Repository: https://github.com/safescale-dev-team/safescale.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

# Functions

AbsPathify ...
Capitalize makes the first letter of the first word uppercased.
Check if a port is available.
CIDRToIPv4Range converts CIDR to IPv4 range.
CIDRToLongRange converts CIDR to range of long values (representing IPv4 addresses).
ExtractRetCode extracts info from the error.
GeneratePassword generates a password with length at least 12.
IPv4ToLong converts IPv4 to uint32.
IsCIDRRoutable tells if the network is routable.
IsEmpty checks whether v is an empty struct.
LazyRemove is identical to os.Remove, but doesn't raise an error, and log.Warn every error except "file not found" which is ignored.
LongToIPv4 converts uint32 to IP.
New gets an available port.
NewMapCache ...
Plural returns 's' if value > 1, "" otherwise.
UserConfirmed asks user to confirm.

# Structs

MapCache implements Cache interface using map.

# Interfaces

Cache is an interface for caching elements.
Valid interface is used to check data validity.