diff options
Diffstat (limited to 'cover.go')
| -rw-r--r-- | cover.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,10 @@ func (cd *CoverDimensions) UnmarshalJSON(data []byte) error { return nil } +func (cd CoverDimensions) String() string { + return fmt.Sprintf("%0.3f x %0.3f %s", cd.Width, cd.Height, cd.Unit) +} + // CoverValidation contains the validation status of a cover file. type CoverValidation struct { Id uint |