🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/mmason33/go-html-link-parser

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
g

github.com/mmason33/go-html-link-parser

v0.0.0-20201219001546-8368513a9042
99

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

100

License

Version published
Created
Issues
0

Get all anchor tags from HTML file. Extract the href and text.

Model

type Link struct {
    Href string
    Text string
}

ParseHTMLLinks(filePath) ([]Link, err)

Getting Started

// clone
git clone https://github.com/mmason33/go-html-link-parser.git
cd go-html-link-parser

// run
go run cmd/main.go

// flag
go run cmd/main.go -file=./path-to-html.html

FAQs

Package last updated on 19 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts