go-sprout / sprout

From sprig to sprout - Useful template functions for Go templates with steroids
https://sprout.atom.codes
MIT License
86 stars 4 forks source link

feat: introduce toduration conversion function #27

Closed 42atomys closed 4 months ago

42atomys commented 4 months ago

Description

This pull request introduce the toDuration as proposed in #8 and https://github.com/Masterminds/sprig/issues/388 using the cast package.

Changes

Fixes #8

Checklist

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.7%. Comparing base (f253487) to head (75537b4).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #27 +/- ## ===================================== Coverage 99.7% 99.7% ===================================== Files 13 13 Lines 1398 1401 +3 ===================================== + Hits 1394 1397 +3 Misses 2 2 Partials 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.