utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 3 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

type GlobFlags

type GlobFlags int

type PathPattern

type PathPattern struct {
	// contains filtered or unexported fields
}

func NewPathPattern

func NewPathPattern(pattern string) (*PathPattern, error)

func (*PathPattern) Matches

func (pp *PathPattern) Matches(path string) bool

Jump to

Keyboard shortcuts

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