Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prune ¶
func Prune(obj interface{}, s *structuralschema.Structural, root bool)
Prune removes object fields in obj which are not specified in s. It skips TypeMeta and ObjectMeta fields if XEmbeddedResource is set to true, or for the root if root=true.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.