package main import ( "git.apinb.com/quant/gostock/internal/config" "git.apinb.com/quant/gostock/internal/impl" "git.apinb.com/quant/gostock/internal/logic/strategy" ) var ( ServiceKey = "gostock" ) func main() { config.New(ServiceKey) impl.NewImpl() ymd := lastYmd() strategy.TotalScore(ymd) } func lastYmd() int { var ymd int sql := "select ymd from strat_model sm group by ymd order by ymd desc limit 1" impl.DBService.Raw(sql).Scan(&ymd) return ymd }