Thought it best to add some comments

This commit is contained in:
Micheal Wilkinson
2026-03-17 21:50:50 +00:00
parent 93ddee80e4
commit dd718c9a73
3 changed files with 18 additions and 2 deletions

View File

@@ -4,8 +4,12 @@ import (
"time"
)
// Note represents a single note with its metadata.
type Note struct {
ID int `json:"id"`
// ID is the unique identifier of the note.
ID int `json:"id"`
// LastUpdate is the timestamp of when the note was last modified.
LastUpdate time.Time `json:"last_update"`
Content string `json:"content"`
// Content is the actual text content of the note.
Content string `json:"content"`
}