Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix: make sure the Priority type properly implements the JSON marshal…
Browse files Browse the repository at this point in the history
…/unmarshal interfaces
  • Loading branch information
aschmahmann committed Aug 18, 2021
1 parent 05c5995 commit e4b13f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ func (p Priority) String() string {
}
}

var _ json.Unmarshaler = (*Flag)(nil)
var _ json.Marshaler = (*Flag)(nil)
var _ json.Unmarshaler = (*Priority)(nil)
var _ json.Marshaler = (*Priority)(nil)

// Duration wraps time.Duration to provide json serialization and deserialization.
//
Expand Down

0 comments on commit e4b13f2

Please sign in to comment.