Fix value vs. pointer receivers

This commit is contained in:
Dima Lazerka 2023-08-14 20:08:07 -07:00
parent 3d99d4b6c0
commit 439a6988a4
No known key found for this signature in database
GPG key ID: 059C3E110BE96F29

View file

@ -19,7 +19,7 @@ func NewDuration(d time.Duration) *Duration {
}
// MarshalYAML implements yaml.Marshaler interface.
func (pd Duration) MarshalYAML() (interface{}, error) {
func (pd *Duration) MarshalYAML() (interface{}, error) {
return pd.D.String(), nil
}