Skip to content

lukeomalley/go-html-link-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Go HTML Link Parser

This package contains a simple link parser that takes in HTML as a string and returns all the tags within the document

Usage

This package exposes one method Parse which takes in a reader and returns a slice of links

A link is structured as the following:

  type Link struct {
    Href string
    Text string
  }

Check out the tests for an example usage.

About

A simple package to strip all the links out of an html document

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages