hcl2: add strlen function and update docs. (#14463)

This commit is contained in:
James Rasell
2022-09-06 18:42:40 +02:00
committed by GitHub
parent e6e7afdd75
commit 11496d1816
5 changed files with 47 additions and 21 deletions

View File

@@ -81,6 +81,7 @@ func Functions(basedir string, allowFS bool) map[string]function.Function {
"slice": stdlib.SliceFunc,
"sort": stdlib.SortFunc,
"split": stdlib.SplitFunc,
"strlen": stdlib.StrlenFunc,
"strrev": stdlib.ReverseFunc,
"substr": stdlib.SubstrFunc,
"timeadd": stdlib.TimeAddFunc,