diff --git a/main.go b/main.go index 1c9e806..5c7693f 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "flag" "fmt" + "io/ioutil" "os" path "path/filepath" "runtime" @@ -95,7 +96,7 @@ func main() { // init gowatch.yml if len(os.Args) > 1 && os.Args[1] == "init" { if _, err := os.Stat("gowatch.yml"); os.IsNotExist(err) { - _ = os.WriteFile("gowatch.yml", []byte(defaultYml), 0755) + _ = ioutil.WriteFile("gowatch.yml", []byte(defaultYml), 0755) fmt.Println("gowatch.yml file created to the current directory with the default settings") } else { fmt.Println("gowatch.yml has been exists")