uuid.go 239 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

package utils

import (
	"strings"
    "log"
    "os/exec"
)
 
func TimeUUID() string {
    out, err := exec.Command("uuidgen").Output()
    if err != nil {
        log.Fatal(err)
    }
    return strings.Replace(string(out),"\n","",-1)
}