Problem:
Create a program that manages a library of books. Each book has a title, author, and publication year. Implement functions to add a book, remove a book, and display all books in the library.
Acceptance Criteria:
[x] The program should allow adding books with title, author, and publication year.
[x] The program should allow removing books from the library.
[x] The program should provide a function to display all books in the library.
Hints:
Define a struct for Book with fields for Title, Author, and PublicationYear.
Define a struct for Library with a slice of books.
Implement functions for adding a book, removing a book, and displaying all books in the library.
Problem: Create a program that manages a library of books. Each book has a title, author, and publication year. Implement functions to add a book, remove a book, and display all books in the library.
Acceptance Criteria:
Hints:
Book
with fields forTitle
,Author
, andPublicationYear
.Library
with a slice of books.