fieldutils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldMapsToKeys

func FieldMapsToKeys(maps ...map[string]interface{}) []string

FieldMapsToKeys will extract all the field maps keys, avoiding repetitions in case two or more maps contained the same key.

func MergeFieldMaps

func MergeFieldMaps(maps ...map[string]interface{}) map[string]interface{}

MergeFieldMaps takes a slice of field maps, and merges all the key/value pairs into a new single field map.

Input order matters: in case two or more maps use the same key, the last one to set that key will have the corresponding value persisted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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