1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-05 00:49:00 +02:00

make core.Functions a struct

This commit is contained in:
3timeslazy
2019-10-15 11:40:36 +03:00
parent e5860934a4
commit 83dc0d2811
13 changed files with 54 additions and 24 deletions

View File

@ -3,7 +3,7 @@ package strings
import "github.com/MontFerret/ferret/pkg/runtime/core"
func RegisterLib(ns core.Namespace) error {
return ns.RegisterFunctions(core.Functions{
return ns.RegisterFunctions(core.FunctionsMap{
"CONCAT": Concat,
"CONCAT_SEPARATOR": ConcatWithSeparator,
"CONTAINS": Contains,