fixed code documentation

This commit is contained in:
Fran Jurmanović
2021-08-29 10:51:29 +02:00
parent 0682252859
commit f441f46494
35 changed files with 674 additions and 70 deletions

View File

@@ -10,7 +10,15 @@ import (
"github.com/go-pg/pg/v10/orm"
)
// Creates wallets table if it does not exist.
/*
CreateTableWallets
Creates wallets table if it does not exist.
Args:
*pg.DB: Postgres database client
Returns:
error: Returns if there is an error with table creation
*/
func CreateTableWallets(db pg.DB) error {
models := []interface{}{
(*models.Wallet)(nil),