func (receiver BaseRepository) FindFirstOrPanic(dest interface{}, conds ...interface{}) (tx *gorm.DB) {
	result := receiver.Db().First(dest, conds...)
	if err := result.Error; err != nil {
		panic(err)
	}
	return result
}
Finds or panics
package core
import (
	"fmt"
	"github.com/pressly/goose"
	"gorm.io/driver/sqlite"
	"gorm.io/gorm"
	"time"
)
const (
	MigrationFolder = "core/db/migrations/"
)
type BaseModel struct {
	ID        uint `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}
type BaseRepository struct {
}
func (receiver BaseRepository) Db() *gorm.DB {
	return databaseHandle
}