T
Task2mo ago
Rots

Convert string variable to integer

I'd like to convert my string variable to an integer, how can I do it? Are the some conversion functions supported by the templating language?
2 Replies
andreynering
andreynering2mo ago
Hi @Rots, Yes, take a look at this page: https://go-task.github.io/slim-sprig/conversion.html
slim-sprig
Type Conversion Functions
Useful template functions for Go templates.
Rots
RotsOP2mo ago
thanks

Did you find this page helpful?