26 Commits

Author SHA1 Message Date
8ce7d54d00 Return the index of the added element 2024-10-20 12:57:24 +02:00
bcf2532372 Rename id in Delete methods to index 2024-10-20 12:35:26 +02:00
b6b8970810 Add comments to generic functions 2024-10-20 12:30:23 +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
a7a6b5c711 Get rid of unused functions 2024-10-19 14:28:03 +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
b70ff82141 Delete extensionAttribute.go and simplify undefined attributes 2024-10-17 21:08:41 +02:00
8e226b48ef isValidXML is no longer of any use 2024-10-17 19:05:23 +02:00
5a82f1799f Force undefined content of category and link to be empty or valid xml 2024-10-17 18:39:57 +02:00
b496ac3691 Allow the user to generate a valid iri based on a uuid 2024-10-17 16:52:03 +02:00
3734a3eb3d More complete check within isValidMediaType 2024-10-17 16:46:40 +02:00
0c24f80d09 Rename package to atom 2024-10-16 21:28:04 +02:00
e12cd132d9 Small comment clean up 2024-10-16 20:24:43 +02:00
03ec0d2ddf Remove unused stuff 2024-10-16 20:23:52 +02:00
4220a2acc6 Added and corrected comments 2024-10-16 19:59:28 +02:00
4fe133a394 Create isValidMediaType and isValidLanguageTag 2024-10-16 18:30:22 +02:00
082e71a698 Change URI to IRI after finding validation pattern 2024-10-16 17:33:25 +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
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
92c794d070 First implementation of an atom feed 2024-10-13 17:19:40 +02:00