From 1017e0cb827868edf31b312accef30ea464ddf7a Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 23 Apr 2026 13:00:09 +0200 Subject: [PATCH] chore: comment fixes --- projects/greenlight/internal/data/filters.go | 3 ++- projects/greenlight/internal/data/models.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/greenlight/internal/data/filters.go b/projects/greenlight/internal/data/filters.go index 618d1dc..1058886 100644 --- a/projects/greenlight/internal/data/filters.go +++ b/projects/greenlight/internal/data/filters.go @@ -1,3 +1,4 @@ +// Package data package data import ( @@ -8,7 +9,7 @@ import ( "greenlight.debuggingjon.dev/internal/validator" ) -// Define a new Metadata struct for holding the pagination metadata. +// Metadata struct for holding the pagination metadata. type Metadata struct { CurrentPage int `json:"current_page,omitempty"` PageSize int `json:"page_size,omitempty"` diff --git a/projects/greenlight/internal/data/models.go b/projects/greenlight/internal/data/models.go index 3d07f5c..743cec5 100644 --- a/projects/greenlight/internal/data/models.go +++ b/projects/greenlight/internal/data/models.go @@ -12,7 +12,7 @@ var ( ErrEditConflict = errors.New("edit conflict") ) -// Create a Models struct which wraps the MovieModel. We'll add other models to this, +// Models struct which wraps the MovieModel. We'll add other models to this, // like a UserModel and PermissionModel, as our build progresses. type Models struct { Movies MovieModel @@ -20,7 +20,7 @@ type Models struct { Users UserModel } -// For ease of use, we also add a New() +// NewModels For ease of use, we also add a New() // method which returns a Models struct containing // the initialized MovieModel. func NewModels(db *sql.DB) Models {