Discover Packages
github.com/alfonmga/iso8601_duration
package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: May 28, 2022
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
iso8601_duration
ISO 8601 duration Go utilities.
Install
Via go get tool
$ go get github.com/alfonmga/iso8601_duration
Usage
Browse the docs for the available functions .
Disclaimer
I built this because I wanted to convert YouTube ISO 8601 durations to seconds. Check out the tests and use it at your own risk. The current implementation may panic if an invalid ISO 8601 duration string is provided.
Expand ▾
Collapse ▴
Documentation
¶
Package iso8601_duration provides ISO 8601 duration utilities.
DurationStrToSeconds ISO 8601 duration string to seconds
Source Files
¶
Click to show internal directories.
Click to hide internal directories.