Minor aeshtetic changes
This commit is contained in:
parent
501ca7313c
commit
f4fa3055f3
@ -26,6 +26,7 @@ func LoadBooks() ([]Book, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessBooks(books []Book) error {
|
func ProcessBooks(books []Book) error {
|
||||||
|
fmt.Printf(" B O O K S\n")
|
||||||
utils.Sep()
|
utils.Sep()
|
||||||
for _, book := range books {
|
for _, book := range books {
|
||||||
fmt.Printf("Title: %s, Author: %s, ID: %s\n", book.Title, book.Author, book.ID)
|
fmt.Printf("Title: %s, Author: %s, ID: %s\n", book.Title, book.Author, book.ID)
|
||||||
|
@ -26,6 +26,7 @@ func LoadGames() ([]Game, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessGames(games []Game) error {
|
func ProcessGames(games []Game) error {
|
||||||
|
fmt.Printf(" G A M E S\n")
|
||||||
utils.Sep()
|
utils.Sep()
|
||||||
for _, game := range games {
|
for _, game := range games {
|
||||||
fmt.Printf("Title: %s\n", game.Title)
|
fmt.Printf("Title: %s\n", game.Title)
|
||||||
|
@ -26,6 +26,7 @@ func LoadMovies() ([]Movie, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessMovies(movies []Movie) error {
|
func ProcessMovies(movies []Movie) error {
|
||||||
|
fmt.Printf(" M O V I E S\n")
|
||||||
utils.Sep()
|
utils.Sep()
|
||||||
for _, movie := range movies {
|
for _, movie := range movies {
|
||||||
// Debug print
|
// Debug print
|
||||||
|
@ -26,6 +26,8 @@ func LoadAlbums() ([]Album, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessAlbum(albumList []Album) error {
|
func ProcessAlbum(albumList []Album) error {
|
||||||
|
fmt.Printf(" M U S I C\n")
|
||||||
|
utils.Sep()
|
||||||
for _, album := range albumList {
|
for _, album := range albumList {
|
||||||
fmt.Printf("Title: %s\n", album.Title)
|
fmt.Printf("Title: %s\n", album.Title)
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ func LoadSeries() ([]Serie, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessSeries(series []Serie) error {
|
func ProcessSeries(series []Serie) error {
|
||||||
|
fmt.Printf(" S E R I E S\n")
|
||||||
utils.Sep()
|
utils.Sep()
|
||||||
for _, serie := range series {
|
for _, serie := range series {
|
||||||
// Debug print
|
// Debug print
|
||||||
|
1
main.go
1
main.go
@ -14,6 +14,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
// Load .env file
|
// Load .env file
|
||||||
utils.LoadConfig()
|
utils.LoadConfig()
|
||||||
|
utils.Sep()
|
||||||
|
|
||||||
// --media parameter
|
// --media parameter
|
||||||
media := flag.String("media", "", "Specify the media type to process: movies, series, books, games, or music")
|
media := flag.String("media", "", "Specify the media type to process: movies, series, books, games, or music")
|
||||||
|
Loading…
Reference in New Issue
Block a user