Elixir Diary v0.1.0 Diary View Source

Defines the functions responsible to control the notes of a diary

Link to this section Summary

Functions

Creates a note with a given string value and saves it to the file system

Loads the notes from the file system

Saves a diary note to the file system

Link to this section Functions

Link to this function

create_note(value)

View Source (since 0.1.0)

Specs

create_note([{:value, binary()}]) :: :ok

Creates a note with a given string value and saves it to the file system

Link to this function

load_notes()

View Source (since 0.1.0)

Specs

load_notes() :: [Note]

Loads the notes from the file system

Link to this function

save_note(notes)

View Source (since 0.1.0)

Specs

save_note([{:value, binary()}]) :: :ok

Saves a diary note to the file system