mariusor
|
a0add4eee6
|
Exit early if stringy values have 0 length when doing gob encoding
|
2021-12-30 15:53:51 +01:00 |
|
mariusor
|
3fe3ad49be
|
Implement an ugly hack for gob Marshal/Unmarshal the LangRefValue type
|
2021-12-30 15:29:41 +01:00 |
|
mariusor
|
365484306b
|
Added gob Marshal/Unmarshal for LangRef type
|
2021-12-30 14:58:51 +01:00 |
|
mariusor
|
07b28f09ae
|
Added gob Marshal/Unmarshal for Content type
|
2021-12-30 14:40:07 +01:00 |
|
Marius Orcsik
|
67a86322d8
|
Improved the readme
|
2021-11-12 20:21:49 +01:00 |
|
Marius Orcsik
|
c1e48c1eef
|
More lint errors fixed
|
2021-11-12 20:05:08 +01:00 |
|
mariusor
|
4b021a9cdb
|
Fix some misspells
|
2021-11-12 19:21:16 +01:00 |
|
mariusor
|
d4021d85d8
|
Ran gofmt -s
|
2021-11-12 19:18:20 +01:00 |
|
mariusor
|
a8126635d3
|
Fix some linting warnings
|
2021-11-12 19:10:31 +01:00 |
|
mariusor
|
5064eea988
|
Go fmt'ed files
|
2021-11-12 18:27:28 +01:00 |
|
Marius Orcsik
|
bd0dbddb26
|
Updated comment for the Relationship object
|
2021-11-07 15:06:16 +01:00 |
|
Marius Orcsik
|
0895ecc34f
|
Added Collection related copying of properties
Refactoring of copy functions
|
2021-10-03 15:01:44 +02:00 |
|
Marius Orcsik
|
cd6c842227
|
Remove returning total items for collection, collection page, ordered collection and ordered collection page
This should be moved to a different method/function
|
2021-09-18 17:01:17 +02:00 |
|
Marius Orcsik
|
df7d3cbe81
|
Add nil checks for OnX helper functions
|
2021-09-12 12:52:27 +02:00 |
|
Marius Orcsik
|
d347363314
|
Handle errors coming from fastjson Parse
|
2021-08-28 22:10:10 +02:00 |
|
Marius Orcsik
|
71f08af09f
|
*Better* ItemCollection.Append
|
2021-08-22 18:59:57 +02:00 |
|
Marius Orcsik
|
3d91847f7f
|
Fix loading objects w/o type
They usually correspond to Tags
|
2021-08-22 18:59:32 +02:00 |
|
Marius Orcsik
|
4b6c32b98c
|
Fix items json decoding
|
2021-08-20 22:22:48 +02:00 |
|
mariusor
|
94c953e391
|
Fix public key decoding
|
2021-08-16 16:28:43 +02:00 |
|
Marius Orcsik
|
06ac3605b8
|
Fix crash for article objects load
|
2021-08-15 19:11:18 +02:00 |
|
Marius Orcsik
|
e26b856fcc
|
Use fastjson properly
|
2021-08-15 13:41:01 +02:00 |
|
Marius Orcsik
|
c8d01274d3
|
Fix item collection unmarshall
|
2021-08-14 20:12:13 +02:00 |
|
Marius Orcsik
|
5c5ff6be80
|
Broken item collection decoding
|
2021-08-14 19:04:34 +02:00 |
|
Marius Orcsik
|
f4312e0756
|
Fix how we test empty objects
|
2021-08-14 18:34:21 +02:00 |
|
Marius Orcsik
|
73041d04eb
|
Replace jsonparser to fastjson for parsing json
|
2021-08-14 18:34:02 +02:00 |
|
Marius Orcsik
|
ca0c565b6f
|
Changed default test target in the makefile
|
2021-08-14 18:31:18 +02:00 |
|
Marius Orcsik
|
e7844f6e2b
|
Move CopyXProperties and related functionality from the processing package
|
2021-07-21 19:32:51 +02:00 |
|
Marius Orcsik
|
5fd333bcd1
|
Export types for function parameters required by the OnXXX utility functions
|
2021-07-21 18:38:41 +02:00 |
|
mariusor
|
f56d3bfa45
|
Fixed an actor's public key property Json encode and decode
|
2021-06-23 16:34:48 +02:00 |
|
Marius Orcsik
|
2f08d24234
|
Fix mod download
|
2021-06-06 17:18:01 +02:00 |
|
Marius Orcsik
|
0158b24880
|
Improvements to nil checks before trying to access interface values which might be nil
|
2021-06-06 17:04:34 +02:00 |
|
Marius Orcsik
|
b8343fd3a3
|
Don't crash if collections are nil when invoking Count()
|
2021-06-06 14:34:07 +02:00 |
|
Marius Orcsik
|
558da36360
|
Moved the flatten functionality to this package
|
2021-04-03 13:43:33 +02:00 |
|
Marius Orcsik
|
f09fdb0b8b
|
Disabled all GobEncoding/Decoding and BinaryMarshal/Unmarshal functionality
|
2021-04-02 13:52:04 +02:00 |
|
Marius Orcsik
|
57a41d04da
|
Fix ItemMatches function and adding some basic tests
|
2021-03-27 14:06:24 +01:00 |
|
Marius Orcsik
|
95774ab532
|
Fix Remove method doc comment
|
2021-03-27 14:02:30 +01:00 |
|
mariusor
|
6f428a28ab
|
Modified time properties json encoding to match xsd:timeDate format
Namely switching from the default behavior of time.Time.MarshalJSON, which uses RFC3339Nano to plain RFC3339
|
2021-03-26 10:56:23 +01:00 |
|
Marius Orcsik
|
116119148d
|
Added encoding and decoding gob placeholders api
|
2021-03-14 19:40:36 +01:00 |
|
Marius Orcsik
|
ac3d908e7b
|
Adding placeholder Marshal/UnmarshalBinary and GobEncode/Decode
|
2021-03-14 19:39:49 +01:00 |
|
Marius Orcsik
|
a65a3e9048
|
Renamed internal functions used for JSON buffer write
This is done to ensure we're not overlapping with the future gob functionality
|
2021-03-14 18:31:13 +01:00 |
|
mariusor
|
0c3f57f637
|
Added IsNil function to assert to Object or ItemCollection before checking for nil values in Item interface
|
2021-02-02 14:18:16 +01:00 |
|
Marius Orcsik
|
15ac5c20c7
|
Updated OnX functions to apply the function on an item collection if that's what's being passed to it
This still has the downside that the collection might contain different types of objects
but I can't think of a better way to do it at the moment
|
2021-01-31 13:30:40 +01:00 |
|
mariusor
|
247f1fbf22
|
Removed flatten functionality from here
|
2021-01-13 10:52:50 +01:00 |
|
mariusor
|
cc0968f78b
|
Remove port when compairing hosts
|
2021-01-10 20:54:35 +01:00 |
|
mariusor
|
56bfed629b
|
Add a way to return nil if unmarshaling an empty object
|
2021-01-09 18:37:38 +01:00 |
|
mariusor
|
751dce7fed
|
Improvements to decoding objects without a type
|
2021-01-09 17:39:10 +01:00 |
|
Marius Orcsik
|
c478a28268
|
Added some convenience functions for checking if an Item is an Object or an IRI
|
2020-12-31 10:37:05 +01:00 |
|
Marius Orcsik
|
22a1b093fa
|
Allow InReplyTo to be a single item, not always an item collection
Fix tests
|
2020-12-30 14:19:02 +01:00 |
|
Marius Orcsik
|
3cc5090015
|
Add test for unmarshaling object without type
Fix existing tests
|
2020-12-30 13:31:37 +01:00 |
|
Marius Orcsik
|
727077a035
|
Don't depend on having the type set when trying to call OnX functions
|
2020-12-30 13:31:02 +01:00 |
|