Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "0.1.0"
)
Functions ¶
func FileExists ¶
FileExists checks if a file already exists in the directory.
func UnmarshalNote ¶
UnmarshalNote parses the data in the specified file path and stores the result in the Note pointed to by n.
Types ¶
type Note ¶
type Note struct {
ID, AuthorName, Title, Body string
}
func (*Note) TruncatedBody ¶
TruncatedBody truncates the note's body to a given length and returns it.
Click to show internal directories.
Click to hide internal directories.