merge

package
v0.0.0-...-3ff3e63 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(dst, src proto.Message)

Types

type MergeFunction

type MergeFunction func(dst, src protoreflect.Message) protoreflect.Message
var ReplaceMergeFn MergeFunction = func(dst, src protoreflect.Message) protoreflect.Message {

	return src
}

ReplaceMergeFn instead of merging all subfields one by one, returns src

type OptionFn

type OptionFn func(options mergeOptions) mergeOptions

func MergeFunctionOptionFn

func MergeFunctionOptionFn(name protoreflect.FullName, function MergeFunction) OptionFn

Jump to

Keyboard shortcuts

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