file self loads due to init()
()
| 177 | |
| 178 | // file self loads due to init() |
| 179 | func LoadDataFiles() { |
| 180 | |
| 181 | start := time.Now() |
| 182 | |
| 183 | tmpRaces, err := fileloader.LoadAllFlatFiles[int, *Race](configs.GetFilePathsConfig().DataFiles.String() + `/races`) |
| 184 | if err != nil { |
| 185 | panic(err) |
| 186 | } |
| 187 | |
| 188 | races = tmpRaces |
| 189 | |
| 190 | mudlog.Info("races.LoadDataFiles()", "loadedCount", len(races), "Time Taken", time.Since(start)) |
| 191 | |
| 192 | } |
no test coverage detected