# Functions
NOTE: Assumes that s is ASCII as per IsASCIIText(), otherwise panics.
Connect dials the given address and returns a net.Conn.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Fingerprint returns the first 6 bytes of a byte slice.
GetFreePort gets a free port from the operating system.
IntInSlice returns true if a is found in the list.
Returns true if s is a non-empty printable non-tab ascii character.
Returns true if it has zero length.
Go lacks a simple and safe way to see if something is a typed nil.
Kill the running process by sending itself SIGTERM.
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
NewBaseService creates a new BaseService.
NewBitArray returns a new bit array.
No description provided by the author
New Error with formatted message.
New Error with specified data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Run tasks in parallel, with ability to abort early.
ProtocolAndAddress splits an address into the protocol and address components.
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
No description provided by the author
No description provided by the author
No description provided by the author
SplitAndTrim slices s into all subslices separated by sep and returns a slice of the string s with all leading and trailing Unicode code points contained in cutset removed.
StringInSlice returns true if a is found the list.
StringSliceEqual checks if string slices a and b are equal.
TrapSignal catches the SIGTERM/SIGINT and executes cb function.
No description provided by the author
WriteFileAtomic creates a temporary file with data and provided perm and swaps it atomically with filename if successful.
# Variables
ErrAlreadyStarted is returned when somebody tries to start an already running service.
ErrAlreadyStopped is returned when somebody tries to stop an already stopped service (without resetting it).
No description provided by the author
No description provided by the author
ErrNotStarted is returned when somebody tries to stop a not running service.
# Structs
Classical-inheritance-style service declarations.
BitArray is a thread-safe implementation of a bit array.
CMap is a goroutine-safe map.
FmtError is the data type for NewError() (e.g.
Define these here for compatibility but use tmlibs/common.KI64Pair.
Define these here for compatibility but use tmlibs/common.KVPair.
Rand is a prng, that is seeded with OS randomness.
No description provided by the author
No description provided by the author
ThrottleTimer fires an event at most "dur" after each .Set() call.