hugo-medialog/internal/books/model.go
Óscar M. Lage 2503bc9ebb Fix: update by default
From now on, the update option (no api calls involved) is the default one.
No matter if --update is being passed in the command line, it's the default option if there
is no a "new: true" variable in the yaml.

If there is a "new: true" variable in the yaml that entry will be processed as new, calling
all the apis we need to call to archive the right information.
2024-10-14 16:52:15 +02:00

21 lines
496 B
Go

package books
type Book struct {
Title string `yaml:"title"`
Slug string `yaml:"slug"`
Author string `yaml:"author"`
Link string `yaml:"link"`
Year int `yaml:"year"`
ID string `yaml:"id"`
ISBN string `yaml:"isbn"`
Rate float64 `yaml:"rate"`
Pages int `yaml:"pages"`
Progress string `yaml:"progress"`
Image string `yaml:"image"`
Date string `yaml:"date"`
New bool `yaml:"new"`
Tags []string
}
type Books []Book