mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Add example in README.
Use `map[string][]byte` instead of `map[string]string`.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user