2 Star 15 Fork 17

王布衣/engine

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dataset_manifest.go 702 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-10-18 13:24 +08:00 . 调整manifest结构体字段
package datasets
import "gitee.com/quant1x/engine/cache"
// Manifest 基础的数据缓存
type Manifest struct {
Date string // 日期
Code string // 证券代码
filename string // 文件名
Kind_ cache.Kind
}
func (d Manifest) Kind() cache.Kind {
return d.Kind_
}
func (d Manifest) Owner() string {
return mapDataSets[d.Kind()].Owner()
}
func (d Manifest) Key() string {
return mapDataSets[d.Kind()].Key()
}
func (d Manifest) Name() string {
return mapDataSets[d.Kind()].Name()
}
func (d Manifest) Usage() string {
return mapDataSets[d.Kind()].Usage()
}
func (d Manifest) GetDate() string {
return d.Date
}
func (d Manifest) GetSecurityCode() string {
return d.Code
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v0.3.9

搜索帮助