updateHelper

master
李光春 3 years ago
parent 4bfe4519ad
commit 740f7d060f

@ -1,4 +1,4 @@
package aes package helper_aes
import ( import (
"bytes" "bytes"

@ -1,4 +1,4 @@
package decimal package helper_decimal
import ( import (
"fmt" "fmt"

@ -1,4 +1,4 @@
package json package helper_json
import "encoding/json" import "encoding/json"

@ -1,4 +1,4 @@
package mail package helper_mail
import ( import (
"fmt" "fmt"

@ -1,4 +1,4 @@
package md5 package helper_md5
import ( import (
"crypto/md5" "crypto/md5"
@ -9,4 +9,4 @@ func MD5(str string) string {
s := md5.New() s := md5.New()
s.Write([]byte(str)) s.Write([]byte(str))
return hex.EncodeToString(s.Sum(nil)) return hex.EncodeToString(s.Sum(nil))
} }

@ -1,4 +1,4 @@
package rsa package helper_rsa
import ( import (
"crypto/rand" "crypto/rand"

@ -1,4 +1,4 @@
package time package helper_time
import "time" import "time"

@ -1,4 +1,4 @@
package uuid package helper_uuid
import "github.com/google/uuid" import "github.com/google/uuid"
Loading…
Cancel
Save