v1.2.1 Latest Latest

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

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 8 Imported by: 1




This section is empty.


This section is empty.


func ExistingNames

func ExistingNames(notePath string) (notesNames []string, err error)

ExistingNames return the file names from the given NOTE_PATH

func FindNoteName added in v0.1.0

func FindNoteName(notePath string, words []string, caseSensitive bool) (noteName string, err error)

FindNoteName return a note from slice of string

func FormatTitle added in v0.1.0

func FormatTitle(raw string) (formated string)

FormatTitle return the first line of a string and cut the words to be smaller than 72 characters

func NextNumber

func NextNumber(notePath string) (number int, err error)

NextNumber return the incremented number from ExistingNames

func NoteName added in v0.1.0

func NoteName(number int, title string) string

NoteName join number and title

func NumberFromNoteName added in v0.1.0

func NumberFromNoteName(noteName string) int

NumberFromNoteName extract number from a noteName

func TitleFromNoteName added in v0.1.0

func TitleFromNoteName(noteName string) string

TitleFromNoteName extract title from a noteName


This section is empty.

Jump to

Keyboard shortcuts

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