util

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractProtos

func ExtractProtos(from ...interface{}) (protos []proto.Message)

func PlaceProtos

func PlaceProtos(protos map[string]proto.Message, dsts ...interface{})

func PlaceProtosIntoProtos added in v3.3.0

func PlaceProtosIntoProtos(protos []proto.Message, clearIgnoreLayerCount int, dsts ...proto.Message)

PlaceProtosIntoProtos fills dsts proto messages (direct or transitive) fields with protos values. The matching is done by message descriptor's full name. The <clearIgnoreLayerCount> variable controls how many top model structure hierarchy layers can have empty values for messages (see util.placeProtosInProto(...) for details)

Types

This section is empty.

Jump to

Keyboard shortcuts

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