mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* ToUpper and ToLower expression Signed-off-by: pashavictorovich <[email protected]>
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)
|
|
}
|