Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Simplify MarshalJSON implementations (#242)
There is no need to embed the alias type in a struct when the aliased type is already a struct itself and there are no new/shadowed fields. A type conversion does the job of triggering the default json.Marshal behavior.
- Loading branch information