util/time: add Marshal/Unmarshal to own Duration #184

Merged
vtolstov merged 2 commits from duration into v3 2023-02-13 14:05:17 +03:00
Showing only changes of commit b07806b9a1 - Show all commits

View File

@ -78,5 +78,5 @@ func (d Duration) MarshalYAML() (interface{}, error) {
return nil, nil
}
func (d Duration)
func (d Duration) UnmarshalYAML(fn func(interface{}) error) error
*/