INNER CODE UNIT · Go
viperData
aleibovici/cryptopump · main.go:43
viperData := &types.ViperData{ /* Viper Configuration */
V1: viper.New(), /* Session configurations file */
V2: viper.New(), /* Global configurations file */
}
viperData.V1.SetConfigType("yml") /* Set the type of the configurations file */
viperData.V1.AddConfigPath("./config") /* Set the path to look for the configurations file */
viperData.V1.SetConfigName("config") /* Set the file name of the configurations file */
if err := viperData.V1.ReadInConfig(); err != nil {
logger.LogEntry{ /* Log Entry */
Config: nil,
Market: nil,
Session: nil,
Order: &types.Order{},
Message: functions.GetFunctionName() + " - " + err.Error(),
LogLevel: "DebugLevel",
}.Do()