mostly finished db pages

This commit is contained in:
ston1th 2018-02-11 19:21:31 +01:00
commit 38f7c31517
10 changed files with 278 additions and 125 deletions

View file

@ -12,3 +12,13 @@ func validatePassword(pw string) (b []byte) {
b = hash.Sum(nil)
return
}
const timeFmt = "2006-01-02 15:04:05"
func now() string {
return time.Now().Format(timeFmt)
}
func created(username string) string {
return username + " " + now()
}