From abfca3e8df21f746bc76c254d029e4ac12af6180 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Fri, 26 Jul 2024 11:58:27 +1000 Subject: [PATCH] Remove redundant fields --- go.mod | 1 + go.sum | 3 +++ processor/structs.go | 32 ++++++++++++++------------------ vendor/modules.txt | 2 ++ 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/go.mod b/go.mod index 71171e3..9ffff9b 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,7 @@ require ( ) require ( + github.com/djherbis/times v1.6.0 // indirect github.com/gosuri/uilive v0.0.4 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect diff --git a/go.sum b/go.sum index 6549014..0c6e118 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/djherbis/times v1.6.0 h1:w2ctJ92J8fBvWPxugmXIv7Nz7Q3iDMKNx9v5ocVH20c= +github.com/djherbis/times v1.6.0/go.mod h1:gOHeRAz2h+VJNZ5Gmc/o7iD9k4wW7NMVqieYCY99oc0= github.com/gosuri/uilive v0.0.4 h1:hUEBpQDj8D8jXgtCdBu7sWsy5sbW/5GhuO8KBwJ2jyY= github.com/gosuri/uilive v0.0.4/go.mod h1:V/epo5LjjlDE5RJUcqx8dbw+zc93y5Ya3yg8tfZ74VI= github.com/gosuri/uiprogress v0.0.1 h1:0kpv/XY/qTmFWl/SkaJykZXrBBzwwadmW8fRb7RJSxw= @@ -25,6 +27,7 @@ github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo= github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4= golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= diff --git a/processor/structs.go b/processor/structs.go index f1f65f9..547c1b6 100644 --- a/processor/structs.go +++ b/processor/structs.go @@ -2,22 +2,18 @@ package processor // Holds the result after processing the hashes for the file type Result struct { - File string - MD4 string - MD5 string - SHA1 string - SHA256 string - SHA512 string - Blake2b256 string - Blake2b512 string - Blake3 string - Sha3224 string - Sha3256 string - Sha3384 string - Sha3512 string - Bytes int64 - Description string - Version string - Date string - Urls []string + File string + MD4 string + MD5 string + SHA1 string + SHA256 string + SHA512 string + Blake2b256 string + Blake2b512 string + Blake3 string + Sha3224 string + Sha3256 string + Sha3384 string + Sha3512 string + Bytes int64 } diff --git a/vendor/modules.txt b/vendor/modules.txt index b7c0b38..2d1de86 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,5 @@ +# github.com/djherbis/times v1.6.0 +## explicit; go 1.16 # github.com/gosuri/uilive v0.0.4 ## explicit; go 1.10 github.com/gosuri/uilive