Skip to content

Commit 4f19093

Browse files
authored
Merge pull request #18 from Treblle/change-imports
Update module path to v2 and fix import paths in examples
2 parents a79f55a + bff2028 commit 4f19093

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

cmd/treblle-go/main.go

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

7-
"github.com/treblle/treblle-go"
7+
"github.com/Treblle/treblle-go/v2"
88
)
99

1010
func main() {

examples/gorilla_example/go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module example
1+
module github.com/Treblle/treblle-go/examples/gorilla_example
22

3-
go 1.23.2
4-
5-
replace github.com/Treblle/treblle-go => /Users/pratimbhosale/Desktop/hobbyprojects/treblle-go
3+
go 1.21
64

75
require (
8-
github.com/Treblle/treblle-go v0.0.0-00010101000000-000000000000
6+
github.com/Treblle/treblle-go/v2 v2.0.0
97
github.com/gorilla/mux v1.8.1
108
)
119

1210
require golang.org/x/sync v0.11.0 // indirect
11+
12+
replace github.com/Treblle/treblle-go/v2 => ../../

examples/gorilla_example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"log"
88
"net/http"
99

10-
treblle "github.com/Treblle/treblle-go" // Update this to your actual import path
10+
treblle "github.com/Treblle/treblle-go/v2" // Updated to v2 path
1111
"github.com/gorilla/mux"
1212
)
1313

examples/standard_example/go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module standard_example
1+
module github.com/Treblle/treblle-go/examples/standard_example
22

3-
go 1.23.2
3+
go 1.21
44

5-
replace github.com/Treblle/treblle-go => /Users/pratimbhosale/Desktop/hobbyprojects/treblle-go
5+
require github.com/Treblle/treblle-go/v2 v2.0.0
66

7-
require github.com/Treblle/treblle-go v0.0.0-00010101000000-000000000000
7+
replace github.com/Treblle/treblle-go/v2 => ../../
88

99
require golang.org/x/sync v0.11.0 // indirect

examples/standard_example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"strings"
88

9-
treblle "github.com/Treblle/treblle-go" // Update this to your actual import path
9+
treblle "github.com/Treblle/treblle-go/v2" // Updated to v2 path
1010
)
1111

1212
type User struct {

examples/test_cli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/go-chi/chi"
15-
"github.com/treblle/treblle-go"
15+
"github.com/Treblle/treblle-go/v2"
1616
)
1717

1818
// Create a test request and response for debugging
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
module ngroktest
1+
module github.com/Treblle/treblle-go/examples/treblle-go-sdk-example
22

3-
go 1.23.2
3+
go 1.23.0
4+
5+
toolchain go1.23.2
46

57
require (
8+
github.com/Treblle/treblle-go/v2 v2.0.0
69
github.com/gorilla/mux v1.8.1
710
github.com/joho/godotenv v1.5.1
8-
github.com/treblle/treblle-go v0.7.2
911
)
1012

1113
require golang.org/x/sync v0.12.0 // indirect
1214

13-
replace github.com/treblle/treblle-go => github.com/timpratim/treblle-go v0.0.0-20250325145413-71c3af83a8c4
15+
replace github.com/Treblle/treblle-go/v2 => ../../

examples/treblle-go-sdk-example/go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1111
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
1212
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
13-
github.com/timpratim/treblle-go v0.0.0-20250325145413-71c3af83a8c4 h1:TBn2cAFZihSgWHXcPv1q69DsEe//pNND6lAXVMdQw78=
14-
github.com/timpratim/treblle-go v0.0.0-20250325145413-71c3af83a8c4/go.mod h1:zIneSfxSc9ob2HEGrzx4fpjMff1WpEtniAkYaGrijCU=
1513
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
1614
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
1715
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

examples/treblle-go-sdk-example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/gorilla/mux"
1414
"github.com/joho/godotenv"
15-
treblle "github.com/treblle/treblle-go"
15+
treblle "github.com/Treblle/treblle-go/v2"
1616
)
1717

1818
type User struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/treblle/treblle-go
1+
module github.com/Treblle/treblle-go/v2
22

33
go 1.21
44

0 commit comments

Comments
 (0)