Skip to content

Commit

Permalink
Replace use of wof index/crawl/walk with walker library
Browse files Browse the repository at this point in the history
It's not deprecated and seems to run faster for this use case.
  • Loading branch information
tomtaylor committed Aug 30, 2021
1 parent acbd495 commit 3627452
Show file tree
Hide file tree
Showing 44 changed files with 388 additions and 2,236 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ require (
github.com/aaronland/go-artisanal-integers-proxy v0.2.5
github.com/aaronland/go-pool v1.0.0
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/saracen/walker v0.1.2
github.com/sfomuseum/go-edtf v0.2.3
github.com/smartystreets/scanners v1.0.4
github.com/tidwall/gjson v1.8.1
github.com/tidwall/sjson v1.1.7
github.com/whosonfirst/go-whosonfirst-export v0.4.0
github.com/whosonfirst/go-whosonfirst-geojson-v2 v0.16.3
github.com/whosonfirst/go-whosonfirst-id-proxy v0.0.1
github.com/whosonfirst/go-whosonfirst-index v0.3.4
github.com/whosonfirst/go-whosonfirst-uri v1.1.0
github.com/whosonfirst/warning v0.1.1 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
Expand All @@ -22,7 +22,6 @@ require (
require (
github.com/aaronland/go-artisanal-integers v0.1.1 // indirect
github.com/aaronland/go-brooklynintegers-api v1.2.2 // indirect
github.com/aaronland/go-json-query v0.0.2 // indirect
github.com/aaronland/go-londonintegers-api v0.1.1 // indirect
github.com/aaronland/go-missionintegers-api v0.1.1 // indirect
github.com/aaronland/go-roster v0.0.2 // indirect
Expand All @@ -38,7 +37,6 @@ require (
github.com/skelterjohn/geom v0.0.0-20180103142417-96f3e8a219c5 // indirect
github.com/tidwall/match v1.0.3 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/whosonfirst/go-whosonfirst-crawl v0.2.1 // indirect
github.com/whosonfirst/go-whosonfirst-flags v0.4.3 // indirect
github.com/whosonfirst/go-whosonfirst-format v0.3.6 // indirect
github.com/whosonfirst/go-whosonfirst-hash v0.1.0 // indirect
Expand All @@ -47,7 +45,6 @@ require (
github.com/whosonfirst/go-whosonfirst-placetypes v0.3.0 // indirect
github.com/whosonfirst/go-whosonfirst-sources v0.1.0 // indirect
github.com/whosonfirst/go-whosonfirst-spr/v2 v2.0.0 // indirect
github.com/whosonfirst/walk v0.0.1 // indirect
go.uber.org/ratelimit v0.2.0 // indirect
)

Expand Down
11 changes: 3 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ github.com/aaronland/go-brooklynintegers-api v1.1.0/go.mod h1:agceH8JW8PcdHGCyKE
github.com/aaronland/go-brooklynintegers-api v1.2.1/go.mod h1:vFyhY89Uc0LDZEaEam5EQ+2La2VlkTvSfExuZgZhmX4=
github.com/aaronland/go-brooklynintegers-api v1.2.2 h1:rZmXfSBA1ynQZH/MsS2sCgo1NFHDuz7OQJw3U1RKhe8=
github.com/aaronland/go-brooklynintegers-api v1.2.2/go.mod h1:mTWOMd95OM9EwjgTP/eyNoLQh1bfzDU4nIoZGhrOnyc=
github.com/aaronland/go-json-query v0.0.2 h1:cKw/DnxtGaPsClb78ONgmXPOJkqHhaBMU2RTBbPoXos=
github.com/aaronland/go-json-query v0.0.2/go.mod h1:dGc7y824R93ugQMTldL7PFD/SPVGPwKdqrUJFLE/ILU=
github.com/aaronland/go-londonintegers-api v0.1.0/go.mod h1:E0VIcwks+So4FL1FYAQzrO5/OVOUsFPsqW85UrZArSE=
github.com/aaronland/go-londonintegers-api v0.1.1 h1:/pRWI1FvcOuxsTkK4HY6xUiMPWQlQC7aozJTmf6f2Rk=
github.com/aaronland/go-londonintegers-api v0.1.1/go.mod h1:N7Y0jrx+ouRAMrFcdH4nvJH6vrszj8/3yOOe0F8EV1E=
Expand Down Expand Up @@ -71,6 +69,8 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/saracen/walker v0.1.2 h1:/o1TxP82n8thLvmL4GpJXduYaRmJ7qXp8u9dSlV0zmo=
github.com/saracen/walker v0.1.2/go.mod h1:0oKYMsKVhSJ+ful4p/XbjvXbMgLEkLITZaxozsl4CGE=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/sfomuseum/go-edtf v0.2.2/go.mod h1:1rP0EJZ/84j3HO80vGcnG2T9MFBDAFyTNtjrr8cv3T4=
github.com/sfomuseum/go-edtf v0.2.3 h1:wpcpwl1RD9W/sXFDi4zpoIpQcIwIk8em9CGwa7YWv4g=
Expand Down Expand Up @@ -108,8 +108,6 @@ github.com/tidwall/sjson v1.1.7 h1:sgVPwu/yygHJ2m1pJDLgGM/h+1F5odx5Q9ljG3imRm8=
github.com/tidwall/sjson v1.1.7/go.mod h1:w/yG+ezBeTdUxiKs5NcPicO9diP38nk96QBAbIIGeFs=
github.com/whosonfirst/algnhsa v0.1.0/go.mod h1:swLBXxaVTv3s6dJLhekdQCuCTshUew+xHjptRC21RG0=
github.com/whosonfirst/go-whosonfirst-cli v0.1.0/go.mod h1:Edy+amD+fMq1QS1yxB3u8maA8I93q/LG7JRNh+fsdfc=
github.com/whosonfirst/go-whosonfirst-crawl v0.2.1 h1:nNG7r7/4MaII/NM8Df2oqgfgVNBDoIKlseleoX1vw1Q=
github.com/whosonfirst/go-whosonfirst-crawl v0.2.1/go.mod h1:MTD1TCgAkXlAtysPU98ylrz9Y5+ZCfRrsrBnRyiH/t8=
github.com/whosonfirst/go-whosonfirst-export v0.4.0 h1:d+2V+wGjRH2ldCLCFb/JTl2jYGEBxSaWZlwDDeWfI8U=
github.com/whosonfirst/go-whosonfirst-export v0.4.0/go.mod h1:XmkUCwpzlHNUWURdOeWcDrDQlWmdNe09lIvVIzrpYCI=
github.com/whosonfirst/go-whosonfirst-flags v0.2.0/go.mod h1:ECd0AJJZIlybmjTGB9z+CPz9pSiMTwxur7fPKmDnoqI=
Expand All @@ -127,8 +125,6 @@ github.com/whosonfirst/go-whosonfirst-id v0.0.2 h1:MYtBPYtOND/KSLYeaoURWyh2OkyVq
github.com/whosonfirst/go-whosonfirst-id v0.0.2/go.mod h1:/Oq+Gbvlf33mixjc1aMqAAaOh1JB+wWlNRptbSqP0vI=
github.com/whosonfirst/go-whosonfirst-id-proxy v0.0.1 h1:nTGnC6ZHWwt4w4MwXlJ5SpHDzOdoL+8vFkXyaKIm4X0=
github.com/whosonfirst/go-whosonfirst-id-proxy v0.0.1/go.mod h1:53NH695H1SYDLAYbouOZ7gTTvHA9DuEarhikyuP3sQs=
github.com/whosonfirst/go-whosonfirst-index v0.3.4 h1:Ix6IxQOt3FEDcsgtD7uf/cfaKS9AkOgvFePkpWHWIFc=
github.com/whosonfirst/go-whosonfirst-index v0.3.4/go.mod h1:6PU507JqA3wK/WbCeA3jVGMqcBD/QZ6JGbzmDEXdlfU=
github.com/whosonfirst/go-whosonfirst-log v0.1.0 h1:mWYI5hn16uyeLxBmPsLSvYV4rQKK/cxGVhM+bC2ZoGc=
github.com/whosonfirst/go-whosonfirst-log v0.1.0/go.mod h1:pmgBbxZSnjGVy2nsUJBBMcFagxwIKLlmRsW7ClkXmac=
github.com/whosonfirst/go-whosonfirst-placetypes v0.2.4/go.mod h1:yl0zZ5tfK80C0kl34pJcPB3mZC5XXR7ybQJ5OJyEcDU=
Expand All @@ -143,8 +139,6 @@ github.com/whosonfirst/go-whosonfirst-uri v0.2.0/go.mod h1:8eaDVcc4v+HHHEDaRbApd
github.com/whosonfirst/go-whosonfirst-uri v1.0.1/go.mod h1:8eaDVcc4v+HHHEDaRbApdmhPwM4/JQllw2PktvZcPVs=
github.com/whosonfirst/go-whosonfirst-uri v1.1.0 h1:kNYOmKSm3u2asUOeq7yXL1Q8gFKkPIl8A0qinKrGV/8=
github.com/whosonfirst/go-whosonfirst-uri v1.1.0/go.mod h1:8eaDVcc4v+HHHEDaRbApdmhPwM4/JQllw2PktvZcPVs=
github.com/whosonfirst/walk v0.0.1 h1:t0QrqGwOdPMSeovFZSXfiS0GIGHrRXK3Wb9z5Uhs2bg=
github.com/whosonfirst/walk v0.0.1/go.mod h1:1KtP/VeooSlFOI61p+THc/C16Ra8Z5MjpjI0tsd3c1M=
github.com/whosonfirst/warning v0.1.1 h1:h29zL3VNL9VUHztkAAndzblhrDHyik9z47OuUR2Vovw=
github.com/whosonfirst/warning v0.1.1/go.mod h1:/unEMzhB9YaMeEwTJpzLN3kM5LiSxdJhKEsf/OQhn6s=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand All @@ -168,6 +162,7 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/aaronland/go-json-query/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions vendor/github.com/aaronland/go-json-query/README.md

This file was deleted.

41 changes: 0 additions & 41 deletions vendor/github.com/aaronland/go-json-query/flags.go

This file was deleted.

79 changes: 0 additions & 79 deletions vendor/github.com/aaronland/go-json-query/query.go

This file was deleted.

21 changes: 21 additions & 0 deletions vendor/github.com/saracen/walker/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions vendor/github.com/saracen/walker/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3627452

Please sign in to comment.