little optimization

This commit is contained in:
Celogeek 2021-12-31 13:34:03 +01:00
parent 222fce0e3f
commit 281530ce4c
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@ func (c *ImageDetailsCommand) Execute(args []string) error {
{"Filesize", resp.Filesize}, {"Filesize", resp.Filesize},
{"Categories", strings.Join(resp.Categories.Names(), "\n")}, {"Categories", strings.Join(resp.Categories.Names(), "\n")},
{"Tags", strings.Join(resp.Tags.NamesWithAgeAt(resp.DateCreation), "\n")}, {"Tags", strings.Join(resp.Tags.NamesWithAgeAt(resp.DateCreation), "\n")},
// {"Derivatives", resp.Derivatives},
}) })
t.SetOutputMirror(os.Stdout) t.SetOutputMirror(os.Stdout)
t.SetStyle(table.StyleLight) t.SetStyle(table.StyleLight)

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
) )
type Tags []Tag type Tags []*Tag
type Tag struct { type Tag struct {
Id int `json:"id"` Id int `json:"id"`