func Lower(_ *transformctx.Ctx, s string) (string, error) {
	return strings.ToLower(s), nil
}
Lower lowers the case of an input string.
package customfuncs
import (
	"strings"
	"github.com/google/uuid"
	"github.com/jf-tech/omniparser/transformctx"
)
type CustomFuncType = interface{}
type CustomFuncs = map[string]CustomFuncType
func Merge(funcs ...CustomFuncs) CustomFuncs {
	merged := make(CustomFuncs)
	for _, fs := range funcs {
		for name, f := range fs {
			merged[name] = f
		}
	}
	return merged
}
var CommonCustomFuncs = map[string]CustomFuncType{
	"coalesce":                Coalesce,
	"concat":                  Concat,
	"dateTimeLayoutToRFC3339": DateTimeLayoutToRFC3339,
	"dateTimeToEpoch":         DateTimeToEpoch,
	"dateTimeToRFC3339":       DateTimeToRFC3339,
	"epochToDateTimeRFC3339":  EpochToDateTimeRFC3339,
	"lower":                   Lower,
	"now":                     Now,
	"upper":                   Upper,
	"uuidv3":                  UUIDv3,
}
func Coalesce(_ *transformctx.Ctx, strs ...string) (string, error) {
	for _, str := range strs {
		if str != "" {
			return str, nil
		}
	}
	return "", nil
}
func Concat(_ *transformctx.Ctx, strs ...string) (string, error) {
	var w strings.Builder
	for _, s := range strs {
		w.WriteString(s)
	}
	return w.String(), nil
}