main.go 265 B

1234567891011121314
  1. package main
  2. import (
  3. "github.com/qor5/admin/example/admin"
  4. "github.com/qor5/admin/publish"
  5. )
  6. func main() {
  7. db := admin.ConnectDB()
  8. config := admin.NewConfig()
  9. storage := admin.PublishStorage
  10. publish.RunPublisher(db, storage, config.Publisher)
  11. select {}
  12. }