task.go 654 B

1234567891011121314151617181920212223242526272829
  1. package services
  2. import (
  3. "eta/eta_data_init/utils"
  4. "fmt"
  5. )
  6. var IndexSourceMap map[string]int
  7. func Task() {
  8. fmt.Println("task start")
  9. //path, err := filepath.Abs(os.Args[0])
  10. //if err != nil {
  11. // fmt.Println(err)
  12. //}
  13. //
  14. //dir := filepath.Dir(path)
  15. //fmt.Println(dir)
  16. IndexSourceMap = make(map[string]int)
  17. IndexSourceMap["ths"] = utils.DATA_SOURCE_THS
  18. IndexSourceMap["同花顺"] = utils.DATA_SOURCE_THS
  19. IndexSourceMap["wind"] = utils.DATA_SOURCE_WIND
  20. IndexSourceMap["钢联"] = utils.DATA_SOURCE_MYSTEEL_CHEMICAL
  21. IndexSourceMap["彭博"] = utils.DATA_SOURCE_PB
  22. IndexSourceMap["SMM"] = utils.DATA_SOURCE_YS
  23. fmt.Println("task end")
  24. }