filecloud.go 320 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "flag"
  4. "github.com/jianboy/filecloud/service"
  5. )
  6. var (
  7. configPath = flag.String("file", "./config.toml", "config file")
  8. )
  9. func main() {
  10. flag.Parse()
  11. logger := service.InitLogger("log", "filecloud")
  12. service.LoadConfig(*configPath)
  13. service.Launch()
  14. logger.Info("stop")
  15. service.Stop()
  16. }