summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-10 21:56:24 -0400
committerdemo <demo@antix1>2026-05-10 21:56:24 -0400
commit916e778dfccc2aa5ce95056b97e11f134bc941f7 (patch)
treee3e7036a4a727f3231d395cc74be917cac0f5b8c
parent79577b9024dea082c9cc8380997a224e3934df27 (diff)
refactor: move 'fetch' to its own package
-rw-r--r--internal/fetch/doc.go3
-rw-r--r--internal/fetch/fetch.go (renamed from internal/links/fetch.go)2
-rw-r--r--internal/fetch/fetch_test.go (renamed from internal/links/fetch_test.go)2
3 files changed, 5 insertions, 2 deletions
diff --git a/internal/fetch/doc.go b/internal/fetch/doc.go
new file mode 100644
index 0000000..376a4d3
--- /dev/null
+++ b/internal/fetch/doc.go
@@ -0,0 +1,3 @@
+// Package fetch makes a GET request to a given URL, retrieving the
+// HTML contents of that webpage.
+package fetch
diff --git a/internal/links/fetch.go b/internal/fetch/fetch.go
index 53cc692..f508922 100644
--- a/internal/links/fetch.go
+++ b/internal/fetch/fetch.go
@@ -1,4 +1,4 @@
-package links
+package fetch
import (
"bufio"
diff --git a/internal/links/fetch_test.go b/internal/fetch/fetch_test.go
index 5d873a6..427406d 100644
--- a/internal/links/fetch_test.go
+++ b/internal/fetch/fetch_test.go
@@ -1,4 +1,4 @@
-package links
+package fetch
import "testing"