portal/db/models/models.go

12 lines
183 B
Go
Raw Permalink Normal View History

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