101 Commits

Author SHA1 Message Date
92d71fdbde Fix wordings 2024-10-16 16:54:26 +02:00
f27116930a Correctly escape strings if needed and check for it 2024-10-16 16:51:39 +02:00
c200d5bf73 Create isValidURN and isValidURI and use isValidURI everywhere where it is needed 2024-10-16 16:48:44 +02:00
14696371e2 Create and use isValidURL 2024-10-16 16:14:34 +02:00
4f70da9a17 Add NewCategory 2024-10-15 22:17:10 +02:00
1f7f7966ef Add check for whether a mime type is used for inline other and out of line content 2024-10-15 21:47:13 +02:00
7764589dd3 Add NewContent 2024-10-15 21:14:30 +02:00
9df834d927 Add newOutOfLineContent 2024-10-15 21:13:46 +02:00
ea79900bf3 Correct typo 2024-10-15 21:10:12 +02:00
b26d6370f5 Add newInlineOtherContent 2024-10-15 21:01:40 +02:00
15b74c2675 Add newInlineXHTMLContent 2024-10-15 20:53:01 +02:00
d96e2c61bb Just moving code around, no change 2024-10-15 20:52:35 +02:00
31b6e51cb8 Add newInlineTextContent 2024-10-15 20:47:16 +02:00
4bad8ae99f Allow for empty type in NewText 2024-10-15 20:09:18 +02:00
068f61dc2c Simplify NewText 2024-10-15 20:03:09 +02:00
987feb8226 Check if the type of contents is a composite media type 2024-10-15 19:53:17 +02:00
6322566a54 Add function to check if the media type is composite 2024-10-15 19:46:45 +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
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
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
cd61cb4f27 Delete unnecessary nil checks from feed 2024-10-15 18:32:24 +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
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
ac78db9917 Add function to create a new extension element 2024-10-15 17:26:59 +02:00
9ec6ad1460 Add function to create a new ID 2024-10-15 17:26:26 +02:00
8bfd8a648e Add function to create a new date construct 2024-10-15 16:25:45 +02:00
7de921b1b5 Cleanup 2024-10-15 16:20:11 +02:00
6215ecb82a Properly check url and email address 2024-10-15 16:20:04 +02:00
fe4d539e91 Create method to extend person construct 2024-10-15 16:19:47 +02:00
d2a050bd8f Create NewPersion function 2024-10-15 16:07:41 +02:00
3929892602 Check first if there are any extension elements before checking them individually 2024-10-15 16:07:11 +02:00
2a4adec6bd Create correct xhtml constructs 2024-10-15 16:02:13 +02:00
2cbc604d85 Treat html differently from text in text constructs 2024-10-15 16:01:40 +02:00
2d1d95502f Create function to safely create new text construct 2024-10-15 15:36: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