package
2.0.1+incompatible
Repository: https://github.com/bcbchain/toolbox.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NOTE: Assumes that s is ASCII as per IsASCIIText(), otherwise panics.
No description provided by the author
No description provided by the author
Connect dials the given address and returns a net.Conn.
No description provided by the author
No description provided by the author
ErrorWrap will just call .TraceFrom(), or create a new *cmnError.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GoPath returns GOPATH env variable value.
No description provided by the author
No description provided by the author
No description provided by the author
IntInSlice returns true if a is found in the list.
Returns true if s is a non-empty printable non-tab ascii character.
No description provided by the author
Returns true if it has zero length.
IsHex returns true for non-empty hex-string prefixed with "0x".
Go lacks a simple and safe way to see if something is a typed nil.
No description provided by the author
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
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
NewBaseService creates a new BaseService.
There is no BitArray whose Size is 0.
No description provided by the author
No description provided by the author
New Error with no cause where the type is the format string of the message..
New Error with specified type and message.
No description provided by the author
Construct a TickerMaker that always uses `source`.
No description provided by the author
No description provided by the author
NewRepeatTimer returns a RepeatTimer with a defaultTicker.
NewRepeatTimerWithTicker returns a RepeatTimer with the given ticker maker.
No description provided by the author
Indicates a failure of consensus.
A panic here means something has gone horribly wrong, in the form of data corruption or failure of the operating system.
For those times when we're not sure if we should panic XXX DEPRECATED.
A panic resulting from a sanity check means there is a programmer error and some guarantee is not satisfied.
Run tasks in parallel, with ability to abort early.
ParseDateRange parses a date range string of the format start:end where the start and end date are of the format YYYY-MM-DD.
PrefixEndBytes returns the end byteslice for a noninclusive range that would include all byte slices for which the input is the prefix.
No description provided by the author
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
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.
StripHex returns hex string without leading "0x".
No description provided by the author
No description provided by the author
TrapSignal catches the SIGTERM and executes cb function.
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
WriteFileAtomic creates a temporary file with data and the perm given and swaps it atomically with filename if successful.
No description provided by the author

# Constants

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
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
Like fmt.Sprintf, but skips formatting if args are empty.
No description provided by the author
this represents YYYY-MM-DD.
No description provided by the author

# Structs

Classical-inheritance-style service declarations.
No description provided by the author
NOTE: Not goroutine safe.
CMap is a goroutine-safe map.
Example usage: ``` h := NewHeap() h.Push("msg1", 1) h.Push("msg3", 3) h.Push("msg2", 2) fmt.Println(h.Pop()) // msg1 fmt.Println(h.Pop()) // msg2 fmt.Println(h.Pop()) // msg3 ``` */.
Define these here for compatibility but use tmlibs/common.KI64Pair.
Define these here for compatibility but use tmlibs/common.KVPair.
No description provided by the author
No description provided by the author
RepeatTimer repeatedly sends a struct{}{} to `.Chan()` after each `dur` period.
No description provided by the author
No description provided by the author
ThrottleTimer fires an event at most "dur" after each .Set() call.
No description provided by the author

# Interfaces

No description provided by the author
Usage: ```go // Error construction var someT = errors.New("Some err type") var err1 error = NewErrorWithT(someT, "my message") ..
Service defines a service that can be started, stopped, and reset.
Ticker is a basic ticker interface.
No description provided by the author

# Type aliases

The main purpose of HexBytes is to enable HEX-encoding for json/encoding.
No description provided by the author
No description provided by the author
val: the value returned after task execution.
Used by RepeatTimer the first time, and every time it's Reset() after Stop().
No description provided by the author
No description provided by the author
No description provided by the author