Skip to content

Commit b9232ef

Browse files
committed
Update module paths to use DakshithaS (correct GitHub username)
1 parent 67bd2f7 commit b9232ef

13 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository demonstrates how to maintain multiple major versions of multiple
44

55
## Why /vN in Module Paths?
66

7-
Go requires the `/vN` suffix in module paths for major versions greater than 1 to enable semantic versioning. This allows different major versions to coexist without conflicts, as each version is treated as a separate module. For example, `github.com/dakshithas/go-multi-major-modules/rate-limit/v2` is distinct from `github.com/dakshithas/go-multi-major-modules/rate-limit`.
7+
Go requires the `/vN` suffix in module paths for major versions greater than 1 to enable semantic versioning. This allows different major versions to coexist without conflicts, as each version is treated as a separate module. For example, `github.com/DakshithaS/go-multi-major-modules/rate-limit/v2` is distinct from `github.com/DakshithaS/go-multi-major-modules/rate-limit`.
88

99
## Why Version Folders Instead of Branches or Separate Repositories?
1010

@@ -45,11 +45,11 @@ Avoid this approach when:
4545
To use a specific version of a module, import it with the appropriate `/vN` suffix:
4646

4747
```go
48-
import "github.com/dakshithas/go-multi-major-modules/rate-limit"
48+
import "github.com/DakshithaS/go-multi-major-modules/rate-limit"
4949
// or
50-
import "github.com/dakshithas/go-multi-major-modules/rate-limit/v2"
50+
import "github.com/DakshithaS/go-multi-major-modules/rate-limit/v2"
5151
// or
52-
import "github.com/dakshithas/go-multi-major-modules/add-header/v3"
52+
import "github.com/DakshithaS/go-multi-major-modules/add-header/v3"
5353
```
5454

5555
Each version is independent and can be used separately.

add-header/v1/add_header_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http/httptest"
55
"testing"
66

7-
addheader "github.com/dakshithas/go-multi-major-modules/add-header/src"
7+
addheader "github.com/DakshithaS/go-multi-major-modules/add-header/src"
88
)
99

1010
func TestAddHeader(t *testing.T) {

add-header/v1/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/dakshithas/go-multi-major-modules/add-header
1+
module github.com/DakshithaS/go-multi-major-modules/add-header
22

33
go 1.21

add-header/v2/add_header_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http/httptest"
55
"testing"
66

7-
addheader "github.com/dakshithas/go-multi-major-modules/add-header/v2/src"
7+
addheader "github.com/DakshithaS/go-multi-major-modules/add-header/v2/src"
88
)
99

1010
func TestAddHeaders(t *testing.T) {

add-header/v2/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/dakshithas/go-multi-major-modules/add-header/v2
1+
module github.com/DakshithaS/go-multi-major-modules/add-header/v2
22

33
go 1.21

add-header/v3/add_header_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http/httptest"
55
"testing"
66

7-
addheader "github.com/dakshithas/go-multi-major-modules/add-header/v3/src"
7+
addheader "github.com/DakshithaS/go-multi-major-modules/add-header/v3/src"
88
)
99

1010
func TestSimpleAdder(t *testing.T) {

add-header/v3/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/dakshithas/go-multi-major-modules/add-header/v3
1+
module github.com/DakshithaS/go-multi-major-modules/add-header/v3
22

33
go 1.21

rate-limit/v1/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/dakshithas/go-multi-major-modules/rate-limit
1+
module github.com/DakshithaS/go-multi-major-modules/rate-limit
22

33
go 1.21

rate-limit/v1/rate_limit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/dakshithas/go-multi-major-modules/rate-limit/src"
7+
"github.com/DakshithaS/go-multi-major-modules/rate-limit/src"
88
)
99

1010
func TestRateLimiter(t *testing.T) {

rate-limit/v2/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/dakshithas/go-multi-major-modules/rate-limit/v2
1+
module github.com/DakshithaS/go-multi-major-modules/rate-limit/v2
22

33
go 1.21

0 commit comments

Comments
 (0)