package account import "github.com/rs/zerolog/log" // Insert a model func (a *Account) Insert(username, password string) error { // Store model model := &Model{ Username: username, Password: password, } // Insert model _, err := a.db.Insert(model) if err != nil { log.Err(err).Str("table", "account").Msg("Could not insert row") return err } return nil }