1234567891011121314151617181920212223242526272829 |
- package services
- import (
- "eta/eta_data_init/utils"
- "fmt"
- )
- var IndexSourceMap map[string]int
- func Task() {
- fmt.Println("task start")
- //path, err := filepath.Abs(os.Args[0])
- //if err != nil {
- // fmt.Println(err)
- //}
- //
- //dir := filepath.Dir(path)
- //fmt.Println(dir)
- IndexSourceMap = make(map[string]int)
- IndexSourceMap["ths"] = utils.DATA_SOURCE_THS
- IndexSourceMap["同花顺"] = utils.DATA_SOURCE_THS
- IndexSourceMap["wind"] = utils.DATA_SOURCE_WIND
- IndexSourceMap["钢联"] = utils.DATA_SOURCE_MYSTEEL_CHEMICAL
- IndexSourceMap["彭博"] = utils.DATA_SOURCE_PB
- IndexSourceMap["SMM"] = utils.DATA_SOURCE_YS
- fmt.Println("task end")
- }
|