package
1.0.23
Repository: https://github.com/andrewelkin/trilib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package logger is a generated GoMock package.
No description provided by the author

# Functions

AskForConfirmation ask user for y or n -- source: https://gist.github.com/albrow/5882501 utils.AskForConfirmation uses Scanln to parse user input.
BuyQToSide converts buyQ boolean into side string.
CreateFlag creates flag and returns true if no error.
CreateFlag creates flag and returns true if no error.
DecodePrivateKey decodes base64-coded private key into ed25519 key.
DecodePublicKey decodes base64-coded public key into ed25519 key.
No description provided by the author
DeleteFlag returns false if there was no flag.
No description provided by the author
No description provided by the author
FlagExists checks if file exists.
GenerateHMACBase64 generates base64 encoded signature of HMAC 256, 384, or 512.
GenerateHMACHexEncoded generates hex encoded signature of HMAC 256, 384, or 512.
GenerateUUID generates a psuedo random uuid.
No description provided by the author
No description provided by the author
No description provided by the author
GetOrCreateGlobalContext sets a new global context with logging and cancel Expects a config, which is normally would be a "Logging" section.
No description provided by the author
No description provided by the author
IsFloat64AlmostEqual2 compares two floats and returns true if absolute diff is less OR EQ than threshold.
IsFloat64AlmostEqualByFraction compares two floats and returns true if relative diff is less than the threshold.
No description provided by the author
No description provided by the author
No description provided by the author
LoadTextFileAtomic loads the text file and deletes it.
MakeArrayUnique makes string array unique.
No description provided by the author
MatchMask.
MaxIntegerInSlice returns the largest interger in a slice of integers.
No description provided by the author
NewMockIConfig creates a new mock instance.
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
NewWebSocket creates new websocket.
No description provided by the author
ReadPemPrivateKey reads ed25519 private key from the file, PEM format, and decodes it.
No description provided by the author
ReversedSlice returns a copy of a slice.
ReverseSlice reverses slice in place.
Provides map value if one exists for given key otherwise sets a default value.
No description provided by the author
No description provided by the author
No description provided by the author
SplitNoEmpty splits string and removes all empties.
No description provided by the author
StringInSlice checks if a string is in a slice.
StringInSliceLastToFirst checks if a string is in a slice going from last element to first.
No description provided by the author
No description provided by the author
UnixTimeMS converts time to unix time in milliseconds.
UnixTimeNowMicroSeconds returns the current unix time in microseconds.
UnixTimeNowMS returns the current unix time in milliseconds.
No description provided by the author
WaitForFlag awaits the flag to appear in the file system.
WildCardToRegexp.

# Constants

No description provided by the author
Unique integer values.
Unique integer values.

# Variables

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

# Structs

emulated Atomic bool.
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
MockIConfig is a mock of IConfig interface.
MockIConfigMockRecorder is the mock recorder for MockIConfig.
enables an action once in n sec.
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
Vconfig is just a wrapper around viper Config.

# Interfaces

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