更新谷歌统计

This commit is contained in:
deepzz0
2016-10-31 01:28:06 +08:00
parent 5a87ad3157
commit 2840f5b375
4 changed files with 30 additions and 12 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"crypto/sha1"
"crypto/sha256"
"fmt"
"io"
@@ -11,6 +10,7 @@ import (
"time"
"github.com/eiblog/utils/logd"
"github.com/eiblog/utils/uuid"
)
const (
@@ -32,8 +32,8 @@ func VerifyPasswd(origin, name, input string) bool {
return origin == EncryptPasswd(name, input)
}
func SHA1(data []byte) [sha1.Size]byte {
return sha1.Sum(data)
func RandUUIDv4() string {
return uuid.NewV4().String()
}
func ReadDir(dir string, filter func(name string) bool) (files []string) {