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:
Yusuf Demir
2025-11-27 19:09:04 +03:00
parent 01c0924064
commit 3972004d7a
3 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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