Skip to content

Commit

Permalink
chore: sort import
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Aug 20, 2023
1 parent eb2caef commit a2dd371
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
3 changes: 2 additions & 1 deletion models/active_status.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package models

import (
"github.com/rs/zerolog/log"
"time"

"github.com/rs/zerolog/log"
)

type ActiveStatus struct {
Expand Down
8 changes: 5 additions & 3 deletions utils/auth/identifier.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package auth

import (
"auth_next/config"
"bytes"
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"fmt"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/sha3"
"hash"
"math/big"
"strconv"
"strings"

"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/sha3"

"auth_next/config"
)

func MakeIdentifier(email string) string {
Expand Down
6 changes: 4 additions & 2 deletions utils/email.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package utils

import (
"auth_next/config"
"crypto/tls"
"net/smtp"

"github.com/jordan-wright/email"
"github.com/opentreehole/go-common"
"net/smtp"

"auth_next/config"
)

func SendEmail(subject, content string, receiver []string) error {
Expand Down
3 changes: 2 additions & 1 deletion utils/shamir/shamir.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package shamir

import (
"auth_next/utils"
"crypto/rand"
"errors"
"fmt"
. "math/big"

"auth_next/utils"
)

var P *Int
Expand Down
8 changes: 5 additions & 3 deletions utils/validate.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package utils

import (
"auth_next/config"
"strconv"
"strings"

"github.com/go-playground/validator/v10"
"github.com/opentreehole/go-common"
"github.com/rs/zerolog/log"
"strconv"
"strings"

"auth_next/config"
)

func init() {
Expand Down
6 changes: 4 additions & 2 deletions utils/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package utils

import (
"auth_next/config"
"fmt"
"github.com/go-playground/assert/v2"
"testing"

"github.com/go-playground/assert/v2"

"auth_next/config"
)

func TestValidateEmail(t *testing.T) {
Expand Down

0 comments on commit a2dd371

Please sign in to comment.