Skip to main content

GetConfig

Retrieves the configuration object. If the configuration cannot be retrieved or cast to the expected type, it logs a warning and returns nil.

def GetConfig() - > *Config

Retrieves the application's configuration. This function is used to access the global configuration settings for the application.

Returns

TypeDescription
*ConfigThe application's configuration object, or nil if the configuration section cannot be retrieved.