Skip to content
Snippets Groups Projects
Commit 1f40e11e authored by Danis Kirasirov's avatar Danis Kirasirov
Browse files

Add StringContains expression

parent 88a7df56
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ func LessOrEqualNumber(f string, n int) string {
return fmt.Sprintf("%s <= %d", f, n)
}
func StringContains(str, substr string) string {
return fmt.Sprintf("%s contains '%s'", str, substr)
}
func InStringArray(s string, arr []string) string {
arrStr := "'" + strings.Join(arr, "','") + "'"
return fmt.Sprintf("%s in [%s]", s, arrStr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment