Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyContent = errors.New("content cannot be empty")
ErrEmptyHeadlineAndContent is returned when content is empty
View Source
var ErrNoteCreationFailed = errors.New("note creation failed")
ErrNoteCreationFailed is returned when note creation fails
View Source
var ErrNoteDeletionFailed = errors.New("note deletion failed")
ErrNoteDeletionFailed is returned when note deletion fails
View Source
var ErrNoteIdRequired = errors.New("note ID is required")
ErrNoteIdRequired is returned when a note ID is required but not provided
View Source
var ErrNoteNotFound = errors.New("note not found")
ErrNoteNotFound is returned when a note with the specified ID does not exist
View Source
var ErrNoteUpdateFailed = errors.New("note update failed")
ErrNoteUpdateFailed is returned when note update fails
Functions ¶
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() string
func StringInSlice ¶
func TruncateString ¶
TruncateString truncates a string to a specified length and appends "..." if truncated.
Types ¶
Click to show internal directories.
Click to hide internal directories.