data

package
v0.0.0-...-d7f0eb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNote

func CreateNote() (*string, error)

CreateNote generates a new notefile and returns an error on failure.

func DeleteNote

func DeleteNote(file string) error

DeleteNote deletes a notes data

func GetAmountOfNotes

func GetAmountOfNotes() (int, error)

GetAmountOfNotes returns the amount of existing notes or `0` and an error. Only top level files are counted.

func LoadNote

func LoadNote(file string) ([]byte, error)

LoadNote loads the content of a note and returns an error on failure.

func SaveNote

func SaveNote(file string, textToSave []byte) error

SaveNote saves the given data into the note

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL