note

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(t time.Time, dir string) bool

Exists stats a note file for a given time. If the files Exists, but is empty it is counted as not existing.

func Load

func Load(t time.Time, dir string) string

Load reads a note file for a given time.

If the file is missing it is simply treated as an empty file. All other errors will return the error string itself (which is meant to be displayed to the user).

func Path

func Path(t time.Time, dir string) string

Path returns the filepath for a given note.

Environment variables, such as $HOME may be used in the dir and will be expanded appropriately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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