Skip to content

Commit

Permalink
remove timeDuration from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama committed Mar 16, 2023
1 parent 9edd6ff commit f9a9010
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/writing-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,3 @@ This is equivalent to the following when using the `placeholder` template type:

#### sprig functions
The template loads the functions provided by sprig (https://masterminds.github.io/sprig/) with the exclusion of the functions are not guaranteed to evaluate to the same result for given input (https://github.com/Masterminds/sprig/blob/581758eb7d96ae4d113649668fa96acc74d46e7f/functions.go#L68-L95)

#### "timeDuration" function
The template provides a function named "timeDuration" that accept an int64 and return equivalent `time.Duration`, for example the following will render `5s`:
```text
{{$timeDuration := timeDuration 5000000000}}{{$timeDuration}}
```

0 comments on commit f9a9010

Please sign in to comment.