first working version

This commit is contained in:
ston1th 2019-04-28 18:16:40 +02:00
commit de359ab415
47 changed files with 1016 additions and 2012 deletions

12
pkg/index/id.go Normal file
View file

@ -0,0 +1,12 @@
package index
import (
"crypto/rand"
"encoding/hex"
)
func newID() string {
b := make([]byte, 16)
rand.Read(b)
return hex.EncodeToString(b)
}