LoadStruct loads the properties from p to dst. dst must be a struct pointer.
(dst interface{}, p []Property)
| 312 | // LoadStruct loads the properties from p to dst. |
| 313 | // dst must be a struct pointer. |
| 314 | func 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. |
searching dependent graphs…