https://github.com/lmihailovic/link
Project 4 in the Gophercises course!
https://github.com/lmihailovic/link
go golang html html-parser html-parsing html5-parser html5-parsing link-parsing links
Last synced: 6 months ago
JSON representation
Project 4 in the Gophercises course!
- Host: GitHub
- URL: https://github.com/lmihailovic/link
- Owner: lmihailovic
- License: isc
- Created: 2025-08-08T21:54:38.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-08-10T00:10:28.000Z (7 months ago)
- Last Synced: 2025-08-10T01:07:41.152Z (7 months ago)
- Topics: go, golang, html, html-parser, html-parsing, html5-parser, html5-parsing, link-parsing, links
- Language: HTML
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Link parser
This program returns html links in a map which looks like this:
```
path: text
```
## Example
The following html:
```
A link to another page
```
will result in
```
path: /other-page
text: A link to another page
```
Nested tags are also taken account of:
```
Check me out on twitter
Gophercises is on Github!
Faster, stronger, better web development!
```
results in
```
path: https://www.twitter.com/joncalhoun
text: Check me out on twitter
path: https://github.com/gophercises
text: Gophercises is on Github!
path: https://lukam.xyz
text: Faster, stronger, better web development!
```