deving
This commit is contained in:
@@ -49,7 +49,7 @@ func main() {
|
||||
}
|
||||
|
||||
func WriteResults(data []*ResultData, tag string) {
|
||||
rf, err := os.OpenFile("./result/stocks_"+tag+".csv", os.O_RDWR|os.O_CREATE, os.ModePerm)
|
||||
rf, err := os.OpenFile("./result/stocks_"+tag+".csv", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user