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

Method ReadSection

internal/copyover/copyover.go:60–69  ·  view source on GitHub ↗

ReadSection deserializes the named section into v.

(name string, v any)

Source from the content-addressed store, hash-verified

58
59// ReadSection deserializes the named section into v.
60func (d *Decoder) ReadSection(name string, v any) error {
61 data, ok := d.sections[name]
62 if !ok {
63 return fmt.Errorf("copyover: section %q not found", name)
64 }
65 if err := json.Unmarshal(data, v); err != nil {
66 return fmt.Errorf("copyover: unmarshal section %q: %w", name, err)
67 }
68 return nil
69}
70
71var registry []Contributor
72

Callers 9

CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80
CopyoverRestoreMethod · 0.80

Calls

no outgoing calls

Tested by 3

CopyoverRestoreMethod · 0.64