36 Commits

Author SHA1 Message Date
da5d955b2d Implement more sophisticated updateDateTime function 2024-10-20 15:37:03 +02:00
ae24db0c08 Clarified Add method's comments 2024-10-20 14:31:54 +02:00
8ce7d54d00 Return the index of the added element 2024-10-20 12:57:24 +02:00
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
3c312aa3ed Allow entries to be published without any outer feed 2024-10-18 05:00:24 +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
e0902d9ba4 Fix source check in entry 2024-10-17 05:34:32 +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
2ef8d8c9df Fix nil dereference bug in entry checkAuthors 2024-10-17 04:55:28 +02:00
97fe20f364 Add missing methods to entry 2024-10-16 21:35:24 +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
39bd0776c5 Correct AddExtension for entry and person 2024-10-16 17:38:03 +02:00
209059f2b4 Move the parsing of the media type to isXMLMediaType 2024-10-15 19:46:26 +02:00
e3b9ff0225 Move isXMLMediaType to atom.go 2024-10-15 19:40:13 +02:00
b08b62e794 Add check for summary element of entry 2024-10-15 19:32:14 +02:00
9920e077eb Add hasAlternateDuplicateLinks check to entry 2024-10-15 18:46:19 +02:00
656ae8ad46 Add comments to author checks 2024-10-15 18:40:32 +02:00
4f3135dcc6 Add comment to alternateRelExists check 2024-10-15 18:37:54 +02:00
f6bbc2fa6f Delete unnecessary nil checks from entry 2024-10-15 18:35:53 +02:00
1ecda50f34 Check whether there is a link element with a rel attribute of "alternate" if there is no content element in an entry element 2024-10-15 18:34:19 +02:00
f2c6fce7c9 Text constructs should not be pointed towards since they are pointers themselves 2024-10-15 18:07:06 +02:00
c5783268f8 Adapt comments in feed.go and and entry.go 2024-10-15 18:04:03 +02:00
7de921b1b5 Cleanup 2024-10-15 16:20:11 +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