portal/db/models/models.go

12 lines
183 B
Go
Raw Normal View History

package models
var registered []interface{}
func registerModel(model interface{}) {
registered = append(registered, model)
}
func GetModels() []interface{} {
return registered
}