Implement string concatenation

This commit is contained in:
Elara 2023-10-31 15:49:00 -07:00
parent 82e81ec7f4
commit 9b15d2a7dd

View File

@ -137,6 +137,8 @@ func (t *Template) performOp(a, b reflect.Value, op ast.Operator) (any, error) {
return a.Uint() + b.Uint(), nil
case reflect.Float64, reflect.Float32:
return a.Float() + b.Float(), nil
case reflect.String:
return a.String() + b.String(), nil
}
case "-":
switch a.Kind() {