Skip to content

Commit

Permalink
fix(docs): correct example usage in README (#176)
Browse files Browse the repository at this point in the history
Updated README examples to reflect proper usage of contains_all and contains_any.
  • Loading branch information
mikicaivosevic authored Sep 27, 2024
1 parent 8af77a2 commit 93b77ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func main() {
| compare_versions(versionToCheck string, constraints ...string) bool | Compares the first version argument with the provided constraints | `compare_versions('v1.0.0', '>v0.0.1', '<v1.0.1')` | `true` |
| concat(arguments ...interface{}) string | Concatenates the given number of arguments to form a string | `concat("Hello", 123, "world)` | `Hello123world` |
| contains(input, substring interface{}) bool | Verifies if a string contains a substring | `contains("Hello", "lo")` | `true` |
| contains_all(input interface{}, substrings ...string) bool | Verifies if any input contains all of the substrings | `contains("Hello everyone", "lo", "every")` | `true` |
| contains_any(input interface{}, substrings ...string) bool | Verifies if an input contains any of substrings | `contains("Hello everyone", "abc", "llo")` | `true` |
| contains_all(input interface{}, substrings ...string) bool | Verifies if any input contains all of the substrings | `contains_all("Hello everyone", "lo", "every")` | `true` |
| contains_any(input interface{}, substrings ...string) bool | Verifies if an input contains any of substrings | `contains_any("Hello everyone", "abc", "llo")` | `true` |
| date_time(dateTimeFormat string, optionalUnixTime interface{}) string | Returns the formatted date time using simplified or `go` style layout for the current or the given unix time | `date_time("%Y-%M-%D %H:%m")`<br>`date_time("%Y-%M-%D %H:%m", 1654870680)`<br>`date_time("2006-01-02 15:04", unix_time())` | `2022-06-10 14:18` |
| dec_to_hex(number number &#124; string) string | Transforms the input number into hexadecimal format | `dec_to_hex(7001)"` | `1b59` |
| deflate(input string) string | Compresses the input using DEFLATE | `deflate("Hello")` | `"\xf2\x48\xcd\xc9\xc9\x07\x04\x00\x00\xff\xff"` |
Expand Down

0 comments on commit 93b77ce

Please sign in to comment.