Use cast.ToIntE for int conversions in substr and slicestr
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Aug 2015 13:47:16 +0000 (15:47 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Aug 2015 13:47:16 +0000 (15:47 +0200)
commitdac9c0dae68ec0e918f0e648b11263b6d779dd42
tree5ad09ad9c30d4841f486a57f421999fc66d7b1bb
parent5b51b3b9fb19d8d20e99d3c249c0052793abe50a
Use cast.ToIntE for int conversions in substr and slicestr

It is less restrictive, and it is what is used in other template funcs.
tpl/template_funcs.go
tpl/template_funcs_test.go