package expansion
import "k8s.io/kubernetes/third_party/forked/golang/expansion"
Index ¶
- func Expand(input string, mapping func(string) string) string
- func MappingFuncFor(context ...map[string]string) func(string) string
Functions ¶
func Expand ¶
Expand replaces variable references in the input string according to the expansion spec using the given mapping function to resolve the values of variables.
func MappingFuncFor ¶
MappingFuncFor returns a mapping function for use with Expand that implements the expansion semantics defined in the expansion spec; it returns the input string wrapped in the expansion syntax if no mapping for the input is found.
Source Files ¶
expand.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.