You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bake/hclparser/stdlib.go
+55-1Lines changed: 55 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,7 @@ var stdlibFunctions = []funcDef{
127
127
{name: "trimspace", fn: stdlib.TrimSpaceFunc},
128
128
{name: "trimsuffix", fn: stdlib.TrimSuffixFunc},
129
129
{name: "try", fn: tryfunc.TryFunc, descriptionAlt: `Variadic function that tries to evaluate all of is arguments in sequence until one succeeds, in which case it returns that result, or returns an error if none of them succeed.`},
Description: `Given a unix timestamp integer, will parse and return an object representation of that date and time. A unix timestamp is the number of seconds elapsed since January 1, 1970 UTC.`,
Copy file name to clipboardExpand all lines: docs/bake-stdlib.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ title: Bake standard library functions
103
103
|[`trimspace`](#trimspace)| Removes any consecutive space characters (as defined by Unicode) from the start and end of the given string. |
104
104
|[`trimsuffix`](#trimsuffix)| Removes the given suffix from the start of the given string, if present. |
105
105
|[`try`](#try)| Variadic function that tries to evaluate all of is arguments in sequence until one succeeds, in which case it returns that result, or returns an error if none of them succeed. |
106
+
|[`unixtimestampparse`](#unixtimestampparse)| Given a unix timestamp integer, will parse and return an object representation of that date and time. A unix timestamp is the number of seconds elapsed since January 1, 1970 UTC. |
106
107
|[`upper`](#upper)| Returns the given string with all Unicode letters translated to their uppercase equivalents. |
107
108
|[`urlencode`](#urlencode)| Applies URL encoding to a given string. |
108
109
|[`uuidv4`](#uuidv4)| Generates and returns a Type-4 UUID in the standard hexadecimal string format. |
0 commit comments