utils

package
v0.0.0-...-9e584df Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAttributes

func CopyAttributes(value map[string]interface{}) map[string]interface{}

CopyAttributes makes a deep copy of the attributes map.

func NormalizeInterfaceAttributes

func NormalizeInterfaceAttributes(value interface{}) interface{}

NormalizeInterfaceAttributes normalises types of an attribute values. The following transformations are applied: int -> int64, float32 -> float64. The normalisation proceeds recursively through maps and slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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