Add first version of gemini-grc.
This commit is contained in:
14
uid/uid.go
Normal file
14
uid/uid.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package uid
|
||||
|
||||
import (
|
||||
nanoid "github.com/matoous/go-nanoid/v2"
|
||||
)
|
||||
|
||||
func UID() string {
|
||||
// No 'o','O' and 'l'
|
||||
id, err := nanoid.Generate("abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ0123456789", 20)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return id
|
||||
}
|
||||
Reference in New Issue
Block a user