aboutsummaryrefslogtreecommitdiffstats
path: root/cover.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-14 12:22:24 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-14 12:22:24 -0400
commitb2fc5a8c62b71d52d167e992c42fa6630cfca9b3 (patch)
tree068fae0697657f961727866ee94e8f7d4333115c /cover.go
parent71fc4ebe34a18de12d15cbdbaa09fb857b0e0229 (diff)
downloadlulu-b2fc5a8c62b71d52d167e992c42fa6630cfca9b3.zip
cli: cover dimensions
Diffstat (limited to 'cover.go')
-rw-r--r--cover.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cover.go b/cover.go
index 415e22a..e5ad857 100644
--- a/cover.go
+++ b/cover.go
@@ -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