From 8ab2c28343546e5de9b525bf42c9add21be15a51 Mon Sep 17 00:00:00 2001
From: Celestino Amoroso <celestino.amoroso@gmail.com>
Date: Tue, 9 Apr 2024 06:13:12 +0200
Subject: [PATCH] EvalArg -> Arg

---
 helpers.go      | 6 +++---
 helpers_test.go | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/helpers.go b/helpers.go
index 7ebc6e8..eff26a5 100644
--- a/helpers.go
+++ b/helpers.go
@@ -19,16 +19,16 @@ func EvalString(ctx ExprContext, source string) (result any, err error) {
 	return
 }
 
-type EvalArg struct {
+type Arg struct {
 	name  string
 	value any
 }
 
-func EvalStringA(source string, args ...EvalArg) (result any, err error) {
+func EvalStringA(source string, args ...Arg) (result any, err error) {
 	return EvalStringV(source, args)
 }
 
-func EvalStringV(source string, args []EvalArg) (result any, err error) {
+func EvalStringV(source string, args []Arg) (result any, err error) {
 	ctx := NewSimpleFuncStore()
 	for _, arg := range args {
 		if isFunc(arg.value) {
diff --git a/helpers_test.go b/helpers_test.go
index bdaa971..74fe464 100644
--- a/helpers_test.go
+++ b/helpers_test.go
@@ -24,7 +24,7 @@ func subtract(ctx ExprContext, name string, args []any) (result any, err error)
 func TestEvalStringA(t *testing.T) {
 
 	source := `a + b * subtract(4,2)`
-	args := []EvalArg{
+	args := []Arg{
 		{"a", uint8(1)},
 		{"b", int8(2)},
 		{"subtract", FuncTemplate(subtract)},