Skip to content

Commit

Permalink
Update module name
Browse files Browse the repository at this point in the history
  • Loading branch information
daison12006013 committed Jun 2, 2024
1 parent bb95ba5 commit d540f15
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 34 deletions.
8 changes: 4 additions & 4 deletions cmd/http/api_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"net/http"

"web-golang-101/internal/apikeys"
"web-golang-101/internal/auth"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/internal/apikeys"
"github.com/daison12006013/web-golang-101/internal/auth"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/pkg/utils"

"github.com/go-chi/chi/v5"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"net/http"
"regexp"

"web-golang-101/pkg/env"
"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/pkg/env"
"github.com/daison12006013/web-golang-101/pkg/utils"

_ "web-golang-101/docs"
_ "github.com/daison12006013/web-golang-101/docs"

"github.com/go-chi/chi/v5"
_ "github.com/lib/pq"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module web-golang-101
module github.com/daison12006013/web-golang-101

go 1.21.1

Expand Down
6 changes: 3 additions & 3 deletions internal/apikeys/apikeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package apikeys
import (
"context"

"web-golang-101/pkg/db"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/sqlc/queries"
"github.com/daison12006013/web-golang-101/pkg/db"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/sqlc/queries"

"github.com/google/uuid"
"gopkg.in/guregu/null.v4"
Expand Down
6 changes: 3 additions & 3 deletions internal/auth/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"time"

"web-golang-101/pkg/env"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/pkg/env"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/pkg/utils"

"github.com/golang-jwt/jwt/v5"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/http"
"strings"

"web-golang-101/pkg/db"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/pkg/db"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/pkg/utils"
)

type LoginInput struct {
Expand Down
10 changes: 5 additions & 5 deletions internal/auth/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"net/http"
"text/template"

"web-golang-101/internal/mailer"
"web-golang-101/pkg/db"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/pkg/utils"
"web-golang-101/sqlc/queries"
"github.com/daison12006013/web-golang-101/internal/mailer"
"github.com/daison12006013/web-golang-101/pkg/db"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/sqlc/queries"
)

type RegisterInput struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/user_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"encoding/json"

"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/pkg/utils"
)

// User a clone of queries.User{} from sqlc/queries/models.go
Expand Down
6 changes: 3 additions & 3 deletions internal/auth/verify_email.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"errors"

"web-golang-101/pkg/db"
ec "web-golang-101/pkg/errorcodes"
"web-golang-101/pkg/utils"
"github.com/daison12006013/web-golang-101/pkg/db"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"
"github.com/daison12006013/web-golang-101/pkg/utils"
)

func VerifyEmail(token string) (bool, *ec.Error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strconv"

"web-golang-101/sqlc/queries"
"github.com/daison12006013/web-golang-101/sqlc/queries"
)

type DBC struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/crypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"encoding/hex"
"encoding/json"
"errors"
"web-golang-101/pkg/env"

"github.com/daison12006013/web-golang-101/pkg/env"
"github.com/forgoer/openssl"
"golang.org/x/crypto/bcrypt"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"strings"

ec "web-golang-101/pkg/errorcodes"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"

"github.com/getsentry/sentry-go"
"github.com/go-playground/validator"
Expand Down
3 changes: 2 additions & 1 deletion pkg/utils/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"os"
"strings"
"time"
"web-golang-101/pkg/env"

"github.com/daison12006013/web-golang-101/pkg/env"

"github.com/golang-jwt/jwt/v5"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/utils/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package utils
import (
"os"
"testing"
"web-golang-101/pkg/env"

"github.com/daison12006013/web-golang-101/pkg/env"

"github.com/getsentry/sentry-go"
"github.com/rs/zerolog"
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"
"time"

"web-golang-101/pkg/db"
"web-golang-101/pkg/env"
"github.com/daison12006013/web-golang-101/pkg/db"
"github.com/daison12006013/web-golang-101/pkg/env"

"github.com/getsentry/sentry-go"
"github.com/go-chi/chi/v5"
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"os"

ec "web-golang-101/pkg/errorcodes"
ec "github.com/daison12006013/web-golang-101/pkg/errorcodes"

"github.com/go-playground/locales/en"
ut "github.com/go-playground/universal-translator"
Expand Down

0 comments on commit d540f15

Please sign in to comment.