Numerics

/views/components/view/Numeric.html (307 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
{% import (
"fmt"

"{{{ .Package }}}/app/util"
) %}

{% func Numeric(f any) %}{% stripspace %}
{%s f.(fmt.Stringer).String() %}
{% endstripspace %}{% endfunc %}

{% func NumericArray(value []any) %}{% stripspace %}
{%= StringArray(util.ArrayToStringArray(value)) %}
{% endstripspace %}{% endfunc %}