# Packages
Package bufpool initializes an elastic pool of free buffers.
# Functions
CalcPadding returns the number of padding bytes needed to round length bytes to a multiple of blkSize.
Calculate RFC1071 checksum of supplied data chunks.
CreateParentDir creates the necessary parent directories for file.
No description provided by the author
No description provided by the author
No description provided by the author
LoadASList parses the yaml file fileName and returns a structure with non-core and core ASes.
LowerKeys lowers all keys in the map and deletes the previous keys.
No description provided by the author
No description provided by the author
No description provided by the author
ParseDuration parses a string into a time.Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.
RunsInDocker returns whether the current binary is run in a docker container.
SecsToCompact creates a compact string representation from the seconds.
SecsToTime takes seconds stored in a uint32.
TimeToCompact formats the time as a compat string, e.g.
TimeToSecs returns seconds stored as uint32.
TimeToString formats the time as a string.
WriteFile writes data to the file.
# Structs
No description provided by the author
ChannelLock implements a sync.Mutex-like API that uses a 1-value channel behind the scenes.
DurWrap is a wrapper to enable marshalling and unmarshalling of durations with the custom format.
No description provided by the author
Trigger represents a timer with delayed arming.
UnixTime allows parsing and packing timestamps in seconds since epoch.