Strubbl / wallabago

Go wrapper for the Wallabag API
GNU General Public License v3.0
11 stars 5 forks source link

parse more fields from the entries API #2

Closed anarcat closed 7 years ago

anarcat commented 7 years ago

i needed the list of entries which is available only in the _embedded field. while i'm here, just find all fields already. this will grow the memory usage but should be negligible because we read the whole output in memory already anyways.

i believe the proper optimization would be to stream entries through a channel, but the JSON data structure doesn't lend itself to streaming very well.

this PR builds on top of #1.