Skip to content

Commit

Permalink
refactor: rename go modules (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyijun authored Aug 24, 2022
1 parent d005a4d commit b7fac5a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ jobs:
${{ runner.os }}-go-
- name: Run Unit Tests
run: go test logto.io/core -v
run: go test github.com/logto-io/go/core -v

2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"golang.org/x/exp/slices"

"logto.io/core"
"github.com/logto-io/go/core"
)

type LogtoConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions client/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module logto.io/client
module github.com/logto-io/go/client

go 1.19

require (
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
gopkg.in/square/go-jose.v2 v2.6.0
logto.io/core v0.0.0-00010101000000-000000000000
github.com/logto-io/go/core v0.0.0-00010101000000-000000000000
)

require (
Expand All @@ -15,4 +15,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace logto.io/core => ../core/
replace github.com/logto-io/go/core => ../core/
2 changes: 1 addition & 1 deletion client/handle_sign_in_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"logto.io/core"
"github.com/logto-io/go/core"
)

func (logtoClient *LogtoClient) HandleSignInCallback(request *http.Request) error {
Expand Down
2 changes: 1 addition & 1 deletion client/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"net/url"

"github.com/logto-io/go/core"
"gopkg.in/square/go-jose.v2"
"logto.io/core"
)

func (logtoClient *LogtoClient) fetchOidcConfig() (core.OidcConfigResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion client/sign_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"encoding/json"

"logto.io/core"
"github.com/logto-io/go/core"
)

type SignInContext struct {
Expand Down
2 changes: 1 addition & 1 deletion client/sign_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"errors"

"logto.io/core"
"github.com/logto-io/go/core"
)

func (logtoClient *LogtoClient) SignOut(postLogoutRedirectUri string) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion core/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module logto.io/core
module github.com/logto-io/go/core

go 1.19

Expand Down
10 changes: 5 additions & 5 deletions gin-sample/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module logto.io/gin-sample
module github.com/logto-io/go/gin-sample

go 1.19

require (
github.com/gin-contrib/sessions v0.0.5
github.com/gin-gonic/gin v1.8.1
logto.io/client v0.0.0-00010101000000-000000000000
github.com/logto-io/go/client v0.0.0-00010101000000-000000000000
)

require (
Expand Down Expand Up @@ -33,10 +33,10 @@ require (
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
logto.io/core v0.0.0-00010101000000-000000000000 // indirect
github.com/logto-io/go/core v0.0.0-00010101000000-000000000000 // indirect
)

replace (
logto.io/client => ../client
logto.io/core => ../core
github.com/logto-io/go/client => ../client
github.com/logto-io/go/core => ../core
)
2 changes: 1 addition & 1 deletion gin-sample/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/gin-contrib/sessions"
"github.com/gin-contrib/sessions/memstore"
"github.com/gin-gonic/gin"
"logto.io/client"
"github.com/logto-io/go/client"
)

var (
Expand Down

0 comments on commit b7fac5a

Please sign in to comment.