file self loads due to init()
()
| 454 | |
| 455 | // file self loads due to init() |
| 456 | func LoadDataFiles() { |
| 457 | |
| 458 | start := time.Now() |
| 459 | |
| 460 | tmpPetTypes, err := fileloader.LoadAllFlatFiles[string, *Pet](configs.GetFilePathsConfig().DataFiles.String() + `/pets`) |
| 461 | if err != nil { |
| 462 | panic(err) |
| 463 | } |
| 464 | |
| 465 | petTypes = tmpPetTypes |
| 466 | |
| 467 | mudlog.Info("pets.LoadDataFiles()", "loadedCount", len(petTypes), "Time Taken", time.Since(start)) |
| 468 | } |
no test coverage detected