Add example in README.

Use `map[string][]byte` instead of `map[string]string`.
This commit is contained in:
Zhang Huangbin
2023-09-05 16:26:55 +08:00
parent db6c457d5c
commit 1ddcc7b3fc
3 changed files with 36 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ func Test_S3_SetWithChecksum(t *testing.T) {
sha256sum = sha256.New().Sum(val)
)
err := testStore.SetWithChecksum(key, val, map[string]string{"SHA256": string(sha256sum)})
err := testStore.SetWithChecksum(key, val, map[string][]byte{"SHA256": sha256sum})
require.NoError(t, err)
result, err := testStore.Get(key)