Skip to content

Commit 6674a5b

Browse files
committed
Update module name to v3
1 parent d8af2b0 commit 6674a5b

File tree

116 files changed

+243
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+243
-242
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The Goyave framework has an extensive documentation covering in-depth subjects a
5353

5454
<a href="https://system-glitch.github.io/goyave/guide/installation"><h3 align="center">Read the documentation</h3></a>
5555

56-
<a href="https://pkg.go.dev/github.com/System-Glitch/goyave/v2"><h3 align="center">pkg.go.dev</h3></a>
56+
<a href="https://pkg.go.dev/github.com/System-Glitch/goyave/v3"><h3 align="center">pkg.go.dev</h3></a>
5757

5858
## Getting started
5959

@@ -94,7 +94,7 @@ abc 123
9494

9595
## Features tour
9696

97-
This section's goal is to give a **brief** look at the main features of the framework. It doesn't describe everything the framework has to offer, so don't consider this documentation. If you want a complete reference and documentation, head to [pkg.go.dev](https://pkg.go.dev/github.com/System-Glitch/goyave/v2) and the [official documentation](https://system-glitch.github.io/goyave/guide/).
97+
This section's goal is to give a **brief** look at the main features of the framework. It doesn't describe everything the framework has to offer, so don't consider this documentation. If you want a complete reference and documentation, head to [pkg.go.dev](https://pkg.go.dev/github.com/System-Glitch/goyave/v3) and the [official documentation](https://system-glitch.github.io/goyave/guide/).
9898

9999
- [Hello world from scratch](#hello-world-from-scratch)
100100
- [Configuration](#configuration)
@@ -114,7 +114,7 @@ This section's goal is to give a **brief** look at the main features of the fram
114114
The example below shows a basic `Hello world` application using Goyave.
115115

116116
``` go
117-
import "github.com/System-Glitch/goyave/v2"
117+
import "github.com/System-Glitch/goyave/v3"
118118

119119
func registerRoutes(router *goyave.Router) {
120120
router.Get("/hello", func(response *goyave.Response, request *goyave.Request) {
@@ -481,7 +481,7 @@ The following example is a **functional** test and would be located in the `test
481481
``` go
482482
import (
483483
"my-project/http/route"
484-
"github.com/System-Glitch/goyave/v2"
484+
"github.com/System-Glitch/goyave/v3"
485485
)
486486

487487
type CustomTestSuite struct {
@@ -573,7 +573,7 @@ The following file `http/controller/status/status.go` is an example of custom 40
573573
``` go
574574
package status
575575

576-
import "github.com/System-Glitch/goyave/v2"
576+
import "github.com/System-Glitch/goyave/v3"
577577

578578
func NotFound(response *goyave.Response, request *goyave.Request) {
579579
if err := response.RenderHTML(response.GetStatus(), "errors/404.html", nil); err != nil {
@@ -617,7 +617,7 @@ router.CORS(options)
617617
Goyave provides a convenient and expandable way of handling authentication in your application. Authentication can be enabled when registering your routes:
618618

619619
``` go
620-
import "github.com/System-Glitch/goyave/v2/auth"
620+
import "github.com/System-Glitch/goyave/v3/auth"
621621

622622
//...
623623

auth/authenticator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"strings"
77

8-
"github.com/System-Glitch/goyave/v2"
9-
"github.com/System-Glitch/goyave/v2/helper"
8+
"github.com/System-Glitch/goyave/v3"
9+
"github.com/System-Glitch/goyave/v3/helper"
1010
"github.com/jinzhu/gorm"
1111
)
1212

auth/authenticator_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"net/http/httptest"
66
"testing"
77

8-
"github.com/System-Glitch/goyave/v2"
9-
"github.com/System-Glitch/goyave/v2/config"
10-
"github.com/System-Glitch/goyave/v2/database"
8+
"github.com/System-Glitch/goyave/v3"
9+
"github.com/System-Glitch/goyave/v3/config"
10+
"github.com/System-Glitch/goyave/v3/database"
1111
"github.com/jinzhu/gorm"
1212

1313
_ "github.com/jinzhu/gorm/dialects/mysql"

auth/basic.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/System-Glitch/goyave/v2"
8-
"github.com/System-Glitch/goyave/v2/config"
9-
"github.com/System-Glitch/goyave/v2/database"
10-
"github.com/System-Glitch/goyave/v2/lang"
7+
"github.com/System-Glitch/goyave/v3"
8+
"github.com/System-Glitch/goyave/v3/config"
9+
"github.com/System-Glitch/goyave/v3/database"
10+
"github.com/System-Glitch/goyave/v3/lang"
1111
"github.com/jinzhu/gorm"
1212
"golang.org/x/crypto/bcrypt"
1313
)

auth/basic_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"net/http/httptest"
66
"testing"
77

8-
"github.com/System-Glitch/goyave/v2/config"
8+
"github.com/System-Glitch/goyave/v3/config"
99

10-
"github.com/System-Glitch/goyave/v2"
11-
"github.com/System-Glitch/goyave/v2/database"
10+
"github.com/System-Glitch/goyave/v3"
11+
"github.com/System-Glitch/goyave/v3/database"
1212

1313
_ "github.com/jinzhu/gorm/dialects/mysql"
1414
)

auth/jwt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/System-Glitch/goyave/v2"
8-
"github.com/System-Glitch/goyave/v2/config"
9-
"github.com/System-Glitch/goyave/v2/database"
10-
"github.com/System-Glitch/goyave/v2/lang"
7+
"github.com/System-Glitch/goyave/v3"
8+
"github.com/System-Glitch/goyave/v3/config"
9+
"github.com/System-Glitch/goyave/v3/database"
10+
"github.com/System-Glitch/goyave/v3/lang"
1111
"github.com/dgrijalva/jwt-go"
1212
"github.com/jinzhu/gorm"
1313
)

auth/jwt_controller.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"reflect"
66
"time"
77

8-
"github.com/System-Glitch/goyave/v2"
9-
"github.com/System-Glitch/goyave/v2/config"
10-
"github.com/System-Glitch/goyave/v2/database"
11-
"github.com/System-Glitch/goyave/v2/lang"
12-
"github.com/System-Glitch/goyave/v2/validation"
8+
"github.com/System-Glitch/goyave/v3"
9+
"github.com/System-Glitch/goyave/v3/config"
10+
"github.com/System-Glitch/goyave/v3/database"
11+
"github.com/System-Glitch/goyave/v3/lang"
12+
"github.com/System-Glitch/goyave/v3/validation"
1313
"github.com/dgrijalva/jwt-go"
1414
"github.com/jinzhu/gorm"
1515
"golang.org/x/crypto/bcrypt"

auth/jwt_controller_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/System-Glitch/goyave/v2"
12-
"github.com/System-Glitch/goyave/v2/config"
13-
"github.com/System-Glitch/goyave/v2/database"
14-
"github.com/System-Glitch/goyave/v2/validation"
11+
"github.com/System-Glitch/goyave/v3"
12+
"github.com/System-Glitch/goyave/v3/config"
13+
"github.com/System-Glitch/goyave/v3/database"
14+
"github.com/System-Glitch/goyave/v3/validation"
1515
"golang.org/x/crypto/bcrypt"
1616
)
1717

auth/jwt_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/System-Glitch/goyave/v2"
9-
"github.com/System-Glitch/goyave/v2/config"
10-
"github.com/System-Glitch/goyave/v2/database"
8+
"github.com/System-Glitch/goyave/v3"
9+
"github.com/System-Glitch/goyave/v3/config"
10+
"github.com/System-Glitch/goyave/v3/database"
1111
"github.com/dgrijalva/jwt-go"
1212
)
1313

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"sync"
1111

12-
"github.com/System-Glitch/goyave/v2/helper"
12+
"github.com/System-Glitch/goyave/v3/helper"
1313
)
1414

1515
type object map[string]interface{}

0 commit comments

Comments
 (0)