main.go 422 B

123456789101112131415161718192021222324
  1. package main
  2. import (
  3. _ "github.com/go-sql-driver/mysql"
  4. _ "github.com/lifei6671/godoc/routers"
  5. "github.com/astaxie/beego"
  6. "github.com/lifei6671/godoc/commands"
  7. "fmt"
  8. "os"
  9. )
  10. func main() {
  11. commands.RegisterDataBase()
  12. commands.RegisterModel()
  13. commands.RegisterLogger()
  14. commands.RegisterCommand()
  15. commands.RegisterFunction()
  16. beego.SetStaticPath("uploads","uploads")
  17. fmt.Printf("%+v",os.Args)
  18. beego.Run()
  19. }