mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
e6d692010c
Added string functions to standard library
21 lines
466 B
Go
21 lines
466 B
Go
package strings
|
|
|
|
import (
|
|
"context"
|
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
|
"github.com/MontFerret/ferret/pkg/runtime/values"
|
|
)
|
|
|
|
/*
|
|
* Checks whether the pattern search is contained in the string text, using wildcard matching.
|
|
*/
|
|
func Like(_ context.Context, args ...core.Value) (core.Value, error) {
|
|
err := core.ValidateArgs(args, 2, 3)
|
|
|
|
if err != nil {
|
|
return values.False, err
|
|
}
|
|
|
|
return values.None, core.Error(core.ErrNotImplemented, "LIKE")
|
|
}
|