setup parser

This commit is contained in:
Gitea
2023-12-09 00:33:12 +03:00
parent 20107503e0
commit 3733278d8c
24 changed files with 986 additions and 100 deletions

View File

@ -0,0 +1,12 @@
package generator
import (
"crypto/rand"
"encoding/hex"
)
func RandomInt64ID() string {
data := [8]byte{}
_, _ = rand.Read(data[:])
return hex.EncodeToString(data[:])
}