Skip to content

Commit

Permalink
fixed html-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jul 25, 2022
1 parent 51f934d commit 6fd7870
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
9 changes: 9 additions & 0 deletions html-tool/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/tomnomnom/hacks/html-tool

go 1.18

require (
github.com/ericchiang/css v1.3.0
github.com/tomnomnom/gahttp v0.0.0-20180905143706-793a49d82336
golang.org/x/net v0.0.0-20220722155237-a158d28d115b
)
15 changes: 15 additions & 0 deletions html-tool/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
github.com/ericchiang/css v1.3.0 h1:e0vS+vpujMjtT3/SYu7qTHn1LVzXWcLCCDjlfq3YlLY=
github.com/ericchiang/css v1.3.0/go.mod h1:sVSdL+MFR9Q4cKJMQzpIkHIDOLiK+7Wmjjhq7D+MubA=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/tomnomnom/gahttp v0.0.0-20180905143706-793a49d82336 h1:6RIh1I8QG3iqa/OYGtbM+nbhJNkhYhwjLJZJcsS6E24=
github.com/tomnomnom/gahttp v0.0.0-20180905143706-793a49d82336/go.mod h1:+7g/D6azvk/UidENJ0wCwWKYCbK/2uyGRoer6PpiRRU=
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
2 changes: 1 addition & 1 deletion html-tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func extractSelector(r io.Reader, selector string) ([]string, error) {

out := []string{}

sel, err := css.Compile(selector)
sel, err := css.Parse(selector)
if err != nil {
return out, err
}
Expand Down

0 comments on commit 6fd7870

Please sign in to comment.