main.go 305 B

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