From c14532bd1f81d5701dad6f85cd647fdf68917855 Mon Sep 17 00:00:00 2001 From: Savely Krendelhoff Date: Fri, 22 Aug 2025 20:19:32 +0700 Subject: [PATCH] Rename quote module --- internal/quotes/quote.go | 6 ++++++ internal/quotes/types.go | 12 ------------ 2 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 internal/quotes/quote.go delete mode 100644 internal/quotes/types.go diff --git a/internal/quotes/quote.go b/internal/quotes/quote.go new file mode 100644 index 0000000..06746c2 --- /dev/null +++ b/internal/quotes/quote.go @@ -0,0 +1,6 @@ +package quotes + +type Quote struct { + Text string `json:"text"` + Author string `json:"author"` +} diff --git a/internal/quotes/types.go b/internal/quotes/types.go deleted file mode 100644 index f7ae234..0000000 --- a/internal/quotes/types.go +++ /dev/null @@ -1,12 +0,0 @@ -package quotes - -import "context" - -type Quote struct { - Text string `json:"text"` - Author string `json:"author"` -} - -type Service interface { - GetRandomQuote(ctx context.Context) (*Quote, error) -}