Persist pages to file system

This commit is contained in:
2024-10-07 13:36:20 +03:00
parent 74be6b4d0d
commit 74e9327b0b
11 changed files with 256 additions and 69 deletions

14
uid.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
nanoid "github.com/jaevor/go-nanoid"
)
func UID() string {
// Missing o,O and l
uid, err := nanoid.CustomASCII("abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ0123456789", 18)
if err != nil {
panic(err)
}
return uid()
}