Skip to content

Commit

Permalink
[add]デバッグ用にログ表示
Browse files Browse the repository at this point in the history
  • Loading branch information
920oj committed Jan 9, 2021
1 parent 2fb03eb commit bee4d94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func main() {
return
}

fmt.Println(outputBuff)

// distフォルダが無ければ作成
if _, err := os.Stat("./dist"); os.IsNotExist(err) {
os.Mkdir("./dist", 0777)
Expand All @@ -107,7 +109,7 @@ func main() {

// writeBytes 指定した名前と入力内容でファイルを出力する
func writeBytes(filename string, lines []byte) error {
file, err := os.OpenFile(filename, os.O_CREATE, 0666)
file, err := os.OpenFile(filename, os.O_CREATE, 0777)
if err != nil {
return err
}
Expand Down

0 comments on commit bee4d94

Please sign in to comment.