I want to access the HTML document tags from a URL, for example, I have the following webpage:
https://example.com/
I want the inside content from the h1 tag, "Example Domain":
<h1>Example Domain</h1>
Same for the <p> tag:
<p> More information...</p>
And then create a struct using the values from different tags:
type Example struct {
foo string
bar string
}
Example.foo = *h1 tag content*
Example.bar = *p tag content*
Is this possible?