fieldmask

package module
v0.0.0-...-544c78d Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 4 Imported by: 0

README

go-fieldmask

Field mask for golang

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNilSource    = errors.New("source object is nil")
	ErrorNilDest      = errors.New("destination object is nil")
	ErrorTypeNotMatch = errors.New("types of source and destination objects do not match")
)

Functions

func Merge

func Merge(source, dest interface{}, mask *fieldmask.FieldMask) error

Merge will take the fields of `source` that are included as paths in `mask` and write them to the corresponding fields of `dest`

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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