MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / LoadDataFiles

Function LoadDataFiles

internal/pets/pets.go:456–468  ·  view source on GitHub ↗

file self loads due to init()

()

Source from the content-addressed store, hash-verified

454
455// file self loads due to init()
456func 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}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 3

GetFilePathsConfigFunction · 0.92
InfoFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected