mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
refactor(firestore): remove v2 suffix and update to Go 1.25
- Remove /v2 suffix from module path (first module version) - Update Go version from 1.24.0 to 1.25.0 - Update CI workflow to test only Go 1.25.x - Update README to reflect new module path without /v2
This commit is contained in:
3
.github/workflows/test-firestore.yml
vendored
3
.github/workflows/test-firestore.yml
vendored
@@ -15,8 +15,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version:
|
||||
- 1.23.x
|
||||
- 1.24.x
|
||||
- 1.25.x
|
||||
steps:
|
||||
- name: Fetch Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -47,7 +47,7 @@ go mod init github.com/<user>/<repo>
|
||||
And then install the firestore implementation:
|
||||
|
||||
```bash
|
||||
go get github.com/gofiber/storage/firestore/v2
|
||||
go get github.com/gofiber/storage/firestore
|
||||
```
|
||||
|
||||
### Examples
|
||||
@@ -55,7 +55,7 @@ go get github.com/gofiber/storage/firestore/v2
|
||||
Import the storage package.
|
||||
|
||||
```go
|
||||
import firestorage "github.com/gofiber/storage/firestore/v2"
|
||||
import firestorage "github.com/gofiber/storage/firestore"
|
||||
```
|
||||
|
||||
You can use the following possibilities to create a storage:
|
||||
@@ -96,7 +96,7 @@ If you already have a Firestore client configured in your application, you can c
|
||||
import (
|
||||
"cloud.google.com/go/firestore"
|
||||
"context"
|
||||
firestorage "github.com/gofiber/storage/firestore/v2"
|
||||
firestorage "github.com/gofiber/storage/firestore"
|
||||
)
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/gofiber/storage/firestore/v2
|
||||
module github.com/gofiber/storage/firestore
|
||||
|
||||
go 1.24.0
|
||||
go 1.25.0
|
||||
|
||||
require (
|
||||
cloud.google.com/go/firestore v1.14.0
|
||||
|
||||
Reference in New Issue
Block a user