MCPcopy Create free account
hub / github.com/golang/appengine / LoadStruct

Function LoadStruct

v2/datastore/prop.go:314–320  ·  view source on GitHub ↗

LoadStruct loads the properties from p to dst. dst must be a struct pointer.

(dst interface{}, p []Property)

Source from the content-addressed store, hash-verified

312// LoadStruct loads the properties from p to dst.
313// dst must be a struct pointer.
314func LoadStruct(dst interface{}, p []Property) error {
315 x, err := newStructPLS(dst)
316 if err != nil {
317 return err
318 }
319 return x.Load(p)
320}
321
322// SaveStruct returns the properties from src as a slice of Properties.
323// src must be a struct pointer.

Callers 3

LoadMethod · 0.70
TestNilKeyIsStoredFunction · 0.70
loadEntityFunction · 0.70

Calls 2

newStructPLSFunction · 0.70
LoadMethod · 0.65

Tested by 2

LoadMethod · 0.56
TestNilKeyIsStoredFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…