# Functions
ConvertJSONToMap convert JSON style string to map[string]interface{}.
ConvertStructToBytes marshal struct to bytes.
ConvertStructToJSON marshal struct to json string.
ConvertStructToJSONPretty marshal struct to pretty json string.
ConvertStructToMap convert struct to map.
ConvertStructToZapFields convert struct to zap fields.
ExtractSchemeFromURL extract scheme from endpoint.
FileExists checks File existence, file path should be full path.
GeneralizeMapKeyToString convert map key to printable one.
GenerateRequestId generate request id based on google/uuid.
GenerateRequestIdWithPrefix generate request id based on google/uuid.
GetBootConfigOriginal read config file content and unmarshal into map.
GetBootConfigOverrides this function will read user provided config content overrides and construct it into a map.
GetBootConfigPath this function will do the following things.
GetDefaultIfEmptyString returns default value if original string is empty.
GetEnvValueOrDefault returns default value if environment variable is empty or not exist.
GetLocale returns locale from environment variable.
GetLocalHostname returns hostname of localhost, return "" if error occurs or hostname is empty.
GetLocalIP This is a tricky function.
GetPasswordFromBasicAuthString extract password from basic auth formed as <username>:<password>.
GetUsernameFromBasicAuthString extract username from basic auth formed as <username>:<password>.
MatchLocaleWithEnv mainly used in entry config.
MustReadFile read files with provided path, use working directory if given path is relative path.
NewRkMeta returns empty rk meta instance.
OverrideLumberjackConfig override lumberjack config.
OverrideMap override source map with new map items.
OverrideSlice override source slice with new slice items.
OverrideZapConfig overrides zap config.
ParseBootConfigOverrides parses a set line.
RandString generate random string.
ShutdownWithError shuts down and panic.
TryReadFile reads files with provided path, use working directory if given path is relative path.
UnmarshalBootConfig this function is combination of GetBootConfigPath, GetBootConfigOverrides and GetBootConfigOriginal.
# Constants
No description provided by the author
No description provided by the author
RkDepFilePath used in rk cli.
RkLicenseFilePath used in rk cli.
RkMetaFilePath used in rk cli.
RkReadmeFilePath used in rk cli.
RkUtHtmlFilePath used in rk cli.
RkUtOutFilepath used in rk cli.
# Variables
ErrNotList indicates that a non-list was treated as a list.
GlobalFlags will read pflags passed while starting main entry.