expansion

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRefRegexp = regexp.MustCompile(`((secret)?ref)\+([^\+:]*:\/\/[^\+\n ]+[^\+\n ",])\+?`)

Functions

func ModifyStringValues

func ModifyStringValues(v any, f func(path string) (any, error)) (any, error)

Types

type ExpandRegexMatch

type ExpandRegexMatch struct {
	Target *regexp.Regexp
	Lookup func(string) (any, error)
	Only   []string
}

func (*ExpandRegexMatch) InMap

func (e *ExpandRegexMatch) InMap(target map[string]any) (map[string]any, error)

func (*ExpandRegexMatch) InString

func (e *ExpandRegexMatch) InString(s string) (string, error)

func (*ExpandRegexMatch) InValue added in v0.43.2

func (e *ExpandRegexMatch) InValue(s string) (any, error)

InValue expands matches in the given string value. If the entire string matches the regex, it expands and preserves the type. If only part of the string matches, it expands as a string.

Jump to

Keyboard shortcuts

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