Packages

Some help ingesting Keep data obtained via Takeout…

Current section

Files

Jump to
outkeep src outkeep.erl
Raw

src/outkeep.erl

-module(outkeep).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([checklist_from_json/1, text_note_from_json/1, note_from_json/1]).
-spec checklist_from_json(binary()) -> {ok, outkeep@checklist:checklist()} |
{error, gleam@json:decode_error()}.
checklist_from_json(Json_string) ->
_pipe = Json_string,
gleam@json:decode(_pipe, fun outkeep@checklist:decode/1).
-spec text_note_from_json(binary()) -> {ok, outkeep@text_note:text_note()} |
{error, gleam@json:decode_error()}.
text_note_from_json(Json_string) ->
_pipe = Json_string,
gleam@json:decode(_pipe, fun outkeep@text_note:decode/1).
-spec note_from_json(binary()) -> {ok, outkeep@note:note()} |
{error, gleam@json:decode_error()}.
note_from_json(Json_string) ->
_pipe = Json_string,
gleam@json:decode(_pipe, fun outkeep@note:decode/1).