added create date calculator for channel.

This commit is contained in:
5elenay
2021-08-22 17:45:45 +03:00
parent f80532ef53
commit b7cc1c0d5f
6 changed files with 35 additions and 7 deletions

View File

@@ -10,5 +10,6 @@ import (
func genULID() string {
t := time.Now()
entropy := ulid.Monotonic(rand.New(rand.NewSource(t.UnixNano())), 0)
return ulid.MustNew(ulid.Timestamp(t), entropy).String()
}