Categorygithub.com/devops-simba/helpers
modulepackage
1.0.16
Repository: https://github.com/devops-simba/helpers.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AsyncServiceToService wrap an `AsyncService` in an object that implement `Service` interface.
No description provided by the author
CContent Make a content colored, so you may write it to a ColorContext.
CFormat Return a formatted value that can be written to a ColorContext as colored.
ContainsString check whether a collection contains a value or not.
ContainsStringIf check whether a collection contains a value or not.
ContainsStringNC check whether a collection contains a value or not ignoring the case of the values.
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
CWrite write a content to ``w`` using ``context`` or default context of ``w``.
CWritec write a content with specified color to ``w`` using ``context`` or default context of ``w``.
CWritef write a formatted content to ``w``.
CWritefc write a formatted content with specified color to ``w``.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindString find specified value in a list of strings return index of found item or -1 if value is not in the collection.
FindStringIf find a value in a collection of strings that satisfy specified predicate return index of found item or -1 if no value found.
FindStringNC find specified value in a list of string ignoring case of the strings return index of found item or -1 if value is not in the collection.
No description provided by the author
No description provided by the author
Get default context that must used to write content to a writer.
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
IsIP check if a value is an IP or not.
IsIPv4 check if a value is an IP v4.
IsIPv6 check if a value is an IP v4.
No description provided by the author
No description provided by the author
IsWildcard Check if an string contains wildcard syntax characters.
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
NewFileLogFactory Create a a ``FileLogFactory``.
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
ReadEnv Read an environment variable or a default value.
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
ServiceToAsyncService wrap a `Service` in an object that implement `AsyncService` interface.
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
THF_CFormat return a colored formatted string.
THF_CFormatC return a colored formatted string.
THF_Color return a color using its name or RGB code.
THF_ColorC if `context` implemented `TemplateColorContext`, lookup `colorName` in color map of the context otherwise return result of calling `THF_Color` with `colorName`.
THF_Deref dereference a pointer.
THF_JoinScope join an inner and an outer scope and create a joined scope from it.
THF_MakeDict get an even number of parameters(first is key and second is value) and create a dictionary from it.
THF_Quote quote an input string, escaping '"' and '\' character.
THF_QuoteAndJoin quote all items in the collection and then join them with separator.
THF_WithColor return a colored content.
THF_WithColorC return a colored content using the provided `context`.
No description provided by the author
WildcardToRegexp Compile wildcard to a regexp pattern.

# 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
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
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
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
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
NoColor means that content does not have any color of its own and get color of its contex.
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
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
UintBits number of bits in an int(or uint) type.
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
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

# Structs

region AggregateError.
No description provided by the author
No description provided by the author
No description provided by the author
region ColoredValue: a simple value that bind a content with a ``Color``.
region ColoredWriter.
No description provided by the author
No description provided by the author
region ComponentError ComponentError this error indicate a situation when a subcomponent failed.
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
region MixedColor.
No description provided by the author

# Interfaces

No description provided by the author
AsyncService represent a service that have a start and a stop.
region Buffer.
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
Service represent an object that will run a service in a single function.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
region FormatContent: A formatter that support ``ColoredContent`` as its argument.
No description provided by the author
region HTMLContext: a ``ColorContext`` that support HTML coloring.
No description provided by the author
No description provided by the author
No description provided by the author
region NoColorT: Implementation of a nil value for ``Color`` interface.
No description provided by the author
No description provided by the author
No description provided by the author
region RGBCode: RGB representation of a color.
region RGBColor: Implementation of a ``Color`` that work with an ``RGBCode``.
region StringError StringError this type is just like `errors.New` but it may be declared as `const`.
region TTYContext: A ``ColorContext`` that support ``TTY`` coloring and ``MonoColor``.