Commit 11d09df2 authored by Upliner's avatar Upliner

Update uuid api

parent c1b53e81
...@@ -20,7 +20,10 @@ func bin2hex(bin []byte) string { ...@@ -20,7 +20,10 @@ func bin2hex(bin []byte) string {
} }
func newVid() string { func newVid() string {
u := uuid.NewV4() u, err := uuid.NewV4()
if err != nil {
panic(err)
}
return bin2hex(u[:]) return bin2hex(u[:])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment