diff options
| author | Shulhan <ms@kilabit.info> | 2025-05-23 11:01:23 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-05-27 01:51:35 +0700 |
| commit | bcccb3d65bf1714bb03ef6342a85fe14e6209c51 (patch) | |
| tree | 4dfe3fd89737751228a13a712897b6bc07cd2d68 /link_queue.go | |
| parent | 25c19699c84bdf77244edd1dda73652ac57376a6 (diff) | |
| download | jarink-bcccb3d65bf1714bb03ef6342a85fe14e6209c51.tar.xz | |
all: complete the first minimum working implementation
The current implementation at least cover 84% of the cases.
Todo,
* CLI for scan
* add more test case for 100% coverage, including scan on invalid
base URL, scan on invalid HTML page, scan on invalid href or
src image
Diffstat (limited to 'link_queue.go')
| -rw-r--r-- | link_queue.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/link_queue.go b/link_queue.go new file mode 100644 index 0000000..dfcba76 --- /dev/null +++ b/link_queue.go @@ -0,0 +1,11 @@ +// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> +// SPDX-License-Identifier: GPL-3.0-only + +package deadlinks + +import "net/url" + +type linkQueue struct { + parentUrl *url.URL + url string +} |
