fix: Accept Systemd time span syntax when decoding time.Duration fields besides Go native format #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/systemd-duration-parsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolve #17
setFieldValue delegated straight to time.ParseDuration, which rejects common systemd.time(7) syntax such as a bare number of seconds ("30"), the "min" unit, and space-separated compound spans ("1min 30s"). Add a parseSystemdDuration helper that understands systemd's own unit spellings and use it instead.fix/systemd-duration-parsingto fix: Accept Systemd time span syntax when decoding time.Duration fields besides Go native format