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

Method ReadIntoStruct

internal/plugins/plugins.go:449–460  ·  view source on GitHub ↗
(identifier string, out any)

Source from the content-addressed store, hash-verified

447}
448
449func (p *Plugin) ReadIntoStruct(identifier string, out any) error {
450 b, err := p.ReadBytes(identifier)
451 if err != nil {
452 return err
453 }
454
455 if err = yaml.Unmarshal(b, out); err == nil {
456 return err
457 }
458
459 return nil
460}
461
462func Load(dataFilesPath string) {
463

Callers 12

loadMethod · 0.80
loadMethod · 0.80
loadListConfigMethod · 0.80
onPlayerSpawnMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadComplexConfigMethod · 0.80
loadMethod · 0.80
loadLBsMethod · 0.80
loadMethod · 0.80

Calls 1

ReadBytesMethod · 0.95