Skip to content

Commit

Permalink
Update capabilities.json to include strings.count (#990)
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert authored Aug 15, 2024
1 parent e4fcb0f commit 1e14d08
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -4983,6 +4983,33 @@
"type": "function"
}
},
{
"name": "strings.count",
"description": "Returns the number of non-overlapping instances of a substring in a string.",
"categories": [
"strings"
],
"decl": {
"args": [
{
"description": "string to search in",
"name": "search",
"type": "string"
},
{
"description": "substring to look for",
"name": "substring",
"type": "string"
}
],
"result": {
"description": "count of occurrences, `0` if not found",
"name": "output",
"type": "number"
},
"type": "function"
}
},
{
"name": "strings.render_template",
"description": "Renders a templated string with given template variables injected. For a given templated string and key/value mapping, values will be injected into the template where they are referenced by key.\n\tFor examples of templating syntax, see https://pkg.go.dev/text/template",
Expand Down

0 comments on commit 1e14d08

Please sign in to comment.