main.go 290 B

123456789101112131415161718192021222324
  1. package main
  2. import (
  3. "duoduo/conf"
  4. "duoduo/database"
  5. "duoduo/routers"
  6. "fmt"
  7. "os"
  8. )
  9. func main() {
  10. for idx, args := range os.Args {
  11. if idx == 1 {
  12. conf.Model = args
  13. fmt.Print("model = ", conf.Model)
  14. }
  15. }
  16. database.Setup()
  17. //report.SysCronStart()
  18. routers.InitRouter()
  19. }