mirror of
https://github.com/gofiber/storage.git
synced 2025-12-23 12:33:56 +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:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version:
|
go-version:
|
||||||
- 1.23.x
|
- 1.25.x
|
||||||
- 1.24.x
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch Repository
|
- name: Fetch Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ go mod init github.com/<user>/<repo>
|
|||||||
And then install the firestore implementation:
|
And then install the firestore implementation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/gofiber/storage/firestore/v2
|
go get github.com/gofiber/storage/firestore
|
||||||
```
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
@@ -55,7 +55,7 @@ go get github.com/gofiber/storage/firestore/v2
|
|||||||
Import the storage package.
|
Import the storage package.
|
||||||
|
|
||||||
```go
|
```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:
|
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 (
|
import (
|
||||||
"cloud.google.com/go/firestore"
|
"cloud.google.com/go/firestore"
|
||||||
"context"
|
"context"
|
||||||
firestorage "github.com/gofiber/storage/firestore/v2"
|
firestorage "github.com/gofiber/storage/firestore"
|
||||||
)
|
)
|
||||||
|
|
||||||
ctx := context.Background()
|
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 (
|
require (
|
||||||
cloud.google.com/go/firestore v1.14.0
|
cloud.google.com/go/firestore v1.14.0
|
||||||
|
|||||||
Reference in New Issue
Block a user