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

@ -5,6 +5,11 @@ import (
"golang.org/x/crypto/bcrypt"
)
var (
errUserNotFound = dbErr("user not found")
errUserExists = dbErr("user already exist")
)
func (bs *BoltStore) GetUsers() (users []User, err error) {
users, err = bs.DumpUsers()
for i := range users {