Golang x/net: Difference between revisions
From wikinotes
No edit summary |
|||
Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Install --> | </blockquote><!-- Install --> | ||
= Basics = | |||
<blockquote> | |||
<syntaxhighlight lang="go"> | |||
import "golang.org/x/net/html/atom" // HTML element types | |||
</syntaxhighlight> | |||
</blockquote><!-- Basics --> |
Revision as of 13:28, 10 July 2022
The official library for parsing HTML.
It is not shipped with go's standard library, but it is maintained by the go developers.
Documentation
official docs https://pkg.go.dev/golang.org/x/net atom.Atom constants (element types) https://pkg.go.dev/golang.org/x/net@v0.0.0-20220706163947-c90051bbdb60/html/atom#Atom
Install
go get golang.org/x/net
Basics
import "golang.org/x/net/html/atom" // HTML element types