diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-05-14 12:22:24 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-05-14 12:22:24 -0400 |
| commit | b2fc5a8c62b71d52d167e992c42fa6630cfca9b3 (patch) | |
| tree | 068fae0697657f961727866ee94e8f7d4333115c /cover.go | |
| parent | 71fc4ebe34a18de12d15cbdbaa09fb857b0e0229 (diff) | |
| download | lulu-b2fc5a8c62b71d52d167e992c42fa6630cfca9b3.zip | |
cli: cover dimensions
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 |