param add helper get rune

This commit is contained in:
2026-01-02 22:40:23 +03:00
parent e7ac06a61c
commit dac9a87743

View File

@@ -11,6 +11,17 @@ func String(fn Params, key any) (string, bool) {
return data, ok
}
func Rune(fn Params, key any) (rune, bool) {
val, ok := fn.Param(key)
if !ok {
return '0', false
}
data, dok := val.(rune)
return data, dok
}
func Bool(key any, fn Params) (bool, bool) {
val, ok := fn.Param(key)
if !ok {