31 Commits

Author SHA1 Message Date
764b143ff8 Changed comments a bit 2024-10-20 12:41:09 +02:00
bcf2532372 Rename id in Delete methods to index 2024-10-20 12:35:26 +02:00
c0f5306715 Use pointers to make generic functions work 2024-10-20 12:20:25 +02:00
a49e853efb Use generics for Add and Delete Methods 2024-10-20 12:03:26 +02:00
e0384904b4 Added Delete methods for slice elements to common attributes, entry, feed, person and source 2024-10-20 10:49:29 +02:00
7f30fd5411 Instanciate common attributes everywhere so one can simply use the extend method 2024-10-19 14:52:19 +02:00
57db4178d0 Get rid of checks when creating constructs. Check should handle this. 2024-10-19 14:12:51 +02:00
f4dfd6d060 Added more error handling and necessary functions 2024-10-19 12:28:09 +02:00
d4e7bce5e2 Unify error messages 2024-10-18 19:04:08 +02:00
9c38048bd2 Properly use xml names 2024-10-17 20:10:18 +02:00
6117876a59 Check uris before applying them 2024-10-17 19:28:09 +02:00
657624cbd6 Small bug fix 2024-10-17 16:56:46 +02:00
6b9d5be734 Act as if there is an author in the feed when only checking the entry 2024-10-17 05:05:14 +02:00
0c24f80d09 Rename package to atom 2024-10-16 21:28:04 +02:00
4220a2acc6 Added and corrected comments 2024-10-16 19:59:28 +02:00
9920e077eb Add hasAlternateDuplicateLinks check to entry 2024-10-15 18:46:19 +02:00
6782d0c847 Move hasAlternateDumplicateLinks from feed to link in order to also use it elsewhere 2024-10-15 18:44:02 +02:00
656ae8ad46 Add comments to author checks 2024-10-15 18:40:32 +02:00
cd61cb4f27 Delete unnecessary nil checks from feed 2024-10-15 18:32:24 +02:00
c5783268f8 Adapt comments in feed.go and and entry.go 2024-10-15 18:04:03 +02:00
4d35873625 Corrected error message for link check 2024-10-15 17:54:54 +02:00
05cc967ea8 Check for links with "alternate" ref and duplicate type and hreflang attributes 2024-10-15 17:52:38 +02:00
e1ba1b8277 Update updated of feed when adding an object 2024-10-15 17:39:17 +02:00
8863e97f1f Remove unnecessary updated time from NewFeed 2024-10-15 17:36:56 +02:00
215a002992 Small change 2024-10-15 17:35:48 +02:00
a021de6e66 Adapt feed comments 2024-10-15 17:34:33 +02:00
16d8b577e3 Add functions to create a new feed and add objects to slices 2024-10-15 17:29:22 +02:00
7de921b1b5 Cleanup 2024-10-15 16:20:11 +02:00
64a2d6b583 Check should not be called every time the feed is created because it can be costly 2024-10-15 15:08:23 +02:00
83962a0341 Make extensions omitempty 2024-10-13 20:42:17 +02:00
92c794d070 First implementation of an atom feed 2024-10-13 17:19:40 +02:00