utils

package
v0.0.0-...-0dbb838 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 42

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, allowCommas bool) (*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