mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-10 02:38:46 +02:00
26 lines
408 B
Go
26 lines
408 B
Go
package strings
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func NewExprs() map[string]interface{} {
|
|
return map[string]interface{}{
|
|
"ReplaceAll": replaceAll,
|
|
"ToUpper": toUpper,
|
|
"ToLower": toLower,
|
|
}
|
|
}
|
|
|
|
func replaceAll(s, old, new string) string {
|
|
return strings.ReplaceAll(s, old, new)
|
|
}
|
|
|
|
func toUpper(s string) string {
|
|
return strings.ToUpper(s)
|
|
}
|
|
|
|
func toLower(s string) string {
|
|
return strings.ToLower(s)
|
|
}
|