pruning

package
v0.15.8-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2019 License: Apache-2.0 Imports: 1 Imported by: 12

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL