main.go 415 B

12345678910111213141516171819202122232425
  1. package main
  2. import (
  3. "app/cmds"
  4. "app/commons/config"
  5. "app/commons/core"
  6. )
  7. func main() {
  8. if err := sysCheck(); err != nil {
  9. core.JobLog.Error(err.Error())
  10. return
  11. }
  12. cmds.Execute()
  13. }
  14. // 系统信息检查
  15. func sysCheck() error {
  16. core.JobLog.Infof("\nAPP-CONFIG:MOD:%s \nENV-MYSQL:%s \nENV-REDIS:%s",
  17. config.AppConf().Mod,
  18. config.EnvConf().Mysql.Dbname,
  19. config.EnvConf().Redis.Addr)
  20. return nil
  21. }