mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 14:18:12 +00:00
fixed code documentation
This commit is contained in:
@@ -10,7 +10,15 @@ import (
|
||||
"github.com/go-pg/pg/v10/orm"
|
||||
)
|
||||
|
||||
// Creates api users if it does not exist.
|
||||
/*
|
||||
CreateTableUsers
|
||||
|
||||
Creates users table if it does not exist.
|
||||
Args:
|
||||
*pg.DB: Postgres database client
|
||||
Returns:
|
||||
error: Returns if there is an error with table creation
|
||||
*/
|
||||
func CreateTableUsers(db pg.DB) error {
|
||||
models := []interface{}{
|
||||
(*models.User)(nil),
|
||||
|
||||
Reference in New Issue
Block a user