Skip to content

Commit

Permalink
Merge pull request #169 from nlnwa/fix/iterator
Browse files Browse the repository at this point in the history
Fix iteration of warc records
  • Loading branch information
maeb authored Oct 31, 2024
2 parents 07841e6 + 1e936e2 commit 90ba742
Show file tree
Hide file tree
Showing 34 changed files with 58 additions and 55 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ warchaeology
# Dependency directories (remove the comment below to include it)
# vendor/
/.idea/
/.vscode/

/dist/
/docs/.hugo_build.lock
Expand Down
2 changes: 1 addition & 1 deletion arcreader/arcreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package arcreader
import (
"bufio"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/spf13/afero"
)

Expand Down
2 changes: 1 addition & 1 deletion arcreader/arcreader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/warc"
"github.com/spf13/afero"
)
Expand Down
2 changes: 1 addition & 1 deletion arcreader/unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/klauspost/compress/gzip"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
mytime "github.com/nlnwa/warchaeology/v3/internal/time"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/aart/aart.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"os"

"github.com/nfnt/resize"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/internal/filter"
"github.com/nlnwa/warchaeology/v3/internal/warc"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cat/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cat/cat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/warc"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/console/RecordWidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"

"github.com/awesome-gocui/gocui"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/awesome-gocui/gocui"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/awesome-gocui/gocui"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

type recordFilter struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/console/records.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/awesome-gocui/gocui"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/convert/arc/arc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/arcreader"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
Expand Down
2 changes: 1 addition & 1 deletion cmd/convert/nedlib/nedlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
2 changes: 1 addition & 1 deletion cmd/convert/warc/warc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
2 changes: 1 addition & 1 deletion cmd/dedup/dedup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/flag/filter_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/filter"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/flag/warcrecordoptions_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flag
import (
"os"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls/ls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/spf13/afero"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/ls/recordwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/time"
"github.com/nlnwa/warchaeology/v3/internal/util"
"github.com/nlnwa/warchaeology/v3/internal/warc"
Expand Down
2 changes: 1 addition & 1 deletion cmd/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"sync"
"syscall"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/cmd/internal/flag"
"github.com/nlnwa/warchaeology/v3/cmd/internal/log"
"github.com/nlnwa/warchaeology/v3/internal/filewalker"
Expand Down
18 changes: 10 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/nlnwa/warchaeology/v3

go 1.22
go 1.22.0

toolchain go1.22.7

require (
github.com/awesome-gocui/gocui v1.1.0
Expand All @@ -10,7 +12,7 @@ require (
github.com/kirsle/configdir v0.0.0-20170128060238-e45d2f54772f
github.com/klauspost/compress v1.17.11
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/nlnwa/gowarc v1.6.0
github.com/nlnwa/gowarc/v2 v2.0.1
github.com/nlnwa/whatwg-url v0.5.0
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/spf13/afero v1.11.0
Expand All @@ -24,7 +26,7 @@ require (
)

require (
github.com/bits-and-blooms/bitset v1.14.2 // indirect
github.com/bits-and-blooms/bitset v1.14.3 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
Expand Down Expand Up @@ -53,7 +55,7 @@ require (
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/prometheus v0.54.1 // indirect
github.com/prometheus/prometheus v0.55.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
Expand All @@ -64,10 +66,10 @@ require (
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/text v0.19.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
)
32 changes: 16 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5
github.com/awesome-gocui/gocui v1.1.0 h1:db2j7yFEoHZjpQFeE2xqiatS8bm1lO3THeLwE6MzOII=
github.com/awesome-gocui/gocui v1.1.0/go.mod h1:M2BXkrp7PR97CKnPRT7Rk0+rtswChPtksw/vRAESGpg=
github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/bits-and-blooms/bitset v1.14.2 h1:YXVoyPndbdvcEVcseEovVfp0qjJp7S+i5+xgp/Nfbdc=
github.com/bits-and-blooms/bitset v1.14.2/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/bits-and-blooms/bitset v1.14.3 h1:Gd2c8lSNf9pKXom5JtD7AaKO8o7fGQ2LtFj1436qilA=
github.com/bits-and-blooms/bitset v1.14.3/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
Expand Down Expand Up @@ -143,8 +143,8 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/nlnwa/gowarc v1.6.0 h1:FsydfRCpdfcyXb4sHoB0Q17AL9po59rPdcqrimFNgCU=
github.com/nlnwa/gowarc v1.6.0/go.mod h1:BmfIlIm4XY+88ZsCfr9NRU8PX+9In/o/m3qjNDpEcHM=
github.com/nlnwa/gowarc/v2 v2.0.1 h1:B8JDB9z8eSDTVtFmGsBf5yQq8ZWeR8ykw1WP3ztTdxk=
github.com/nlnwa/gowarc/v2 v2.0.1/go.mod h1:2c3u/waySsUNdIvKQPrxq4gmB1uAaMOIJrEUcmMutAY=
github.com/nlnwa/whatwg-url v0.5.0 h1:l71cqfqG44+VCQZQX3wD4bwheFWicPxuwaCimLEfpDo=
github.com/nlnwa/whatwg-url v0.5.0/go.mod h1:X/ejnFFVbaOWdSul+cnlsSHviCzGZJdvPkgc9zD8IY8=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
Expand All @@ -158,10 +158,10 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc=
github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8=
github.com/prometheus/prometheus v0.54.1 h1:vKuwQNjnYN2/mDoWfHXDhAsz/68q/dQDb+YbcEqU7MQ=
github.com/prometheus/prometheus v0.54.1/go.mod h1:xlLByHhk2g3ycakQGrMaU8K7OySZx98BzeCR99991NY=
github.com/prometheus/common v0.59.1 h1:LXb1quJHWm1P6wq/U824uxYi4Sg0oGvNeUm1z5dJoX0=
github.com/prometheus/common v0.59.1/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0=
github.com/prometheus/prometheus v0.55.0 h1:ITinOi1zr3HemoVWHf679PfRRmpxZOcR4nEvsze6eB0=
github.com/prometheus/prometheus v0.55.0/go.mod h1:GGS7QlWKCqCbcEzWsVahYIfQwiGhcExkarHyLJTsv6I=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
Expand Down Expand Up @@ -260,8 +260,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand All @@ -288,26 +288,26 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU=
golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk=
golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24=
golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
Expand Down
2 changes: 1 addition & 1 deletion internal/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"slices"
"strings"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

type RecordFilter struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/index/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/index/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

func Test_codec_decode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/index/digestindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"

"github.com/dgraph-io/badger/v3"
"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/util"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/warc/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"io"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/filter"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/warc/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/warc/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/url"
"time"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
)

type Metadata struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/warcwriterconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/nlnwa/gowarc"
"github.com/nlnwa/gowarc/v2"
"github.com/nlnwa/warchaeology/v3/internal/hooks"
"github.com/nlnwa/warchaeology/v3/internal/util"
)
Expand Down
Loading

0 comments on commit 90ba742

Please sign in to comment.