# Functions
Chunks divides slice by chunks with specified size.
ConstantTimeEq checks if 2 strings are equal in constant time.
DetectLanguage and return it's ISO 639-1 code and confidence.
Do performs HTTP request with timeout, User-Agent, and retrier.
Get performs HTTP GET request with timeout, User-Agent, and retrier.
JSON marshals input into canonical json.
MapKeys returns keys of the map.
MarkdownEmail returns markdown link to email.
MarkdownLink returns markdown link.
MarkdownMXID returns markdown link to MXID.
MarkdownRender coverts markdown text into text and html forms.
No description provided by the author
MergeSlices and remove duplicates.
NewContext creates a new context with a logger and sentry hub.
NewList creates new list.
NewListFromSlice creates a new list and popupates it from slice.
ParseURL parses a URL and returns a URL structure.
No description provided by the author
RemoveFromSlice removes elements of toRemove from base slice.
Server returns server name from the matrix ID (room id/alias, user ID, etc).
SetLogLevel sets the log level.
SetName sets the name of the application.
SetSentryDSN sets the sentry DSN.
SliceToString converts slice of strings into single string (using strings.Join) with optional hook.
StartSpan starts a new span, and if there is no transaction, it starts a new transaction.
StringToInt converts string to int with optional default value.
StringToSlice converts comma-separated string to slice with optional default value.
Template parses template.
Truncate string.
Uniq removes duplicates from slice.
URLSafeDecode decodes url-safe string into the original form.
URLSafeEncode encodes url-unsafe string into url-safe form.
ValuesOrDefault returns the encoded values or the default encoded values.
# Constants
DefaultTimeout for http requests.
MaxRetries for http requests.
RetryDelay for http requests.
No description provided by the author