Skip to content

Commit 4532ad2

Browse files
committed
docs: add web scraper example
1 parent 8836ea9 commit 4532ad2

File tree

5 files changed

+712
-2
lines changed

5 files changed

+712
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build/* linguist-vendored
2+
examples/web-scraper/index.html linguist-vendored

examples/defer-scripts/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// Usage: curl -NL https://git.io/JeOSZ | go run main.go
12
package main
23

34
import (
4-
"github.com/coolspring8/go-lolhtml"
55
"io"
66
"log"
77
"os"
8+
9+
"github.com/coolspring8/go-lolhtml"
810
)
911

1012
func main() {

examples/mixed-content-rewriter/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
// Usage: curl -NL https://git.io/JeOSZ | go run main.go
12
package main
23

34
import (
4-
"github.com/coolspring8/go-lolhtml"
55
"io"
66
"log"
77
"os"
88
"strings"
9+
10+
"github.com/coolspring8/go-lolhtml"
911
)
1012

1113
func main() {

0 commit comments

Comments
 (0)