From a0622c310d8c35d7984a04965d26e5316be7ea07 Mon Sep 17 00:00:00 2001 From: tursom <tursom@foxmail.com> Date: Tue, 1 Aug 2023 15:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=20murmur3=20=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/git_toolbox_prj.xml | 15 +++++++++++++++ checksum/murmur3.go | 3 +-- checksum/murmur3_128_test.go | 2 +- checksum/murmur3_32_test.go | 2 +- checksum/murmur3_64_test.go | 2 +- go.mod | 2 +- go.sum | 2 ++ 7 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .idea/git_toolbox_prj.xml create mode 100644 go.sum diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml new file mode 100644 index 0000000..02b915b --- /dev/null +++ b/.idea/git_toolbox_prj.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="GitToolBoxProjectSettings"> + <option name="commitMessageIssueKeyValidationOverride"> + <BoolValueOverride> + <option name="enabled" value="true" /> + </BoolValueOverride> + </option> + <option name="commitMessageValidationEnabledOverride"> + <BoolValueOverride> + <option name="enabled" value="true" /> + </BoolValueOverride> + </option> + </component> +</project> \ No newline at end of file diff --git a/checksum/murmur3.go b/checksum/murmur3.go index 3f3ba38..39529c1 100644 --- a/checksum/murmur3.go +++ b/checksum/murmur3.go @@ -1,10 +1,9 @@ package checksum import ( - "github.com/spaolacci/murmur3" "hash" - _ "github.com/spaolacci/murmur3" + "github.com/twmb/murmur3" ) type ( diff --git a/checksum/murmur3_128_test.go b/checksum/murmur3_128_test.go index e7fca34..14f5171 100644 --- a/checksum/murmur3_128_test.go +++ b/checksum/murmur3_128_test.go @@ -1,8 +1,8 @@ package checksum import ( - "github.com/spaolacci/murmur3" "github.com/tursom/checksum/assert" + "github.com/twmb/murmur3" "hash" "testing" ) diff --git a/checksum/murmur3_32_test.go b/checksum/murmur3_32_test.go index 95c42ef..f2e96b9 100644 --- a/checksum/murmur3_32_test.go +++ b/checksum/murmur3_32_test.go @@ -1,8 +1,8 @@ package checksum import ( - "github.com/spaolacci/murmur3" "github.com/tursom/checksum/assert" + "github.com/twmb/murmur3" "hash" "testing" ) diff --git a/checksum/murmur3_64_test.go b/checksum/murmur3_64_test.go index 2f235b1..2cf7134 100644 --- a/checksum/murmur3_64_test.go +++ b/checksum/murmur3_64_test.go @@ -1,8 +1,8 @@ package checksum import ( - "github.com/spaolacci/murmur3" "github.com/tursom/checksum/assert" + "github.com/twmb/murmur3" "hash" "testing" ) diff --git a/go.mod b/go.mod index 59950a7..c2b0819 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/tursom/checksum go 1.20 -require github.com/spaolacci/murmur3 v1.1.0 +require github.com/twmb/murmur3 v1.1.8 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..63e8f70 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/twmb/murmur3 v1.1.8 h1:8Yt9taO/WN3l08xErzjeschgZU2QSrwm1kclYq+0aRg= +github.com/twmb/murmur3 v1.1.8/go.mod h1:Qq/R7NUyOfr65zD+6Q5IHKsJLwP7exErjN6lyyq3OSQ=