windows summery use 'create'
This commit is contained in:
parent
c4668d3d6c
commit
f20fd9f966
|
@ -68,7 +68,7 @@ func main() {
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
var err error
|
var err error
|
||||||
ph.File, err = os.Open("summary.md")
|
ph.File, err = os.Create("summary.md")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Cannot open summary.md: ", err)
|
log.Fatal("Cannot open summary.md: ", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue