Explorar el Código

project init

tags/v1.1.0
liangzy hace 4 años
padre
commit
6e70217644
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. +14
    -0
      function.go

+ 14
- 0
function.go Ver fichero

@@ -1,5 +1,19 @@
package grlogs

import (
"crypto/md5"
"encoding/hex"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path"
"reflect"
"runtime"
"strings"
"time"
)

//传入一个字符串,返回一个加密后的md5
func Md5(str string) string {
data := []byte(str)


Cargando…
Cancelar
Guardar