diff --git a/_pkg.dev/wire/util/io/io.go b/_pkg.dev/wire/util/io/io.go deleted file mode 100644 index 89117c602..000000000 --- a/_pkg.dev/wire/util/io/io.go +++ /dev/null @@ -1,17 +0,0 @@ -package fileutils - -import ( - "os" -) - -// UpdateFile appends a byte slice to a file -func UpdateFile(filename string, data []byte) error { - - f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) - - dataWNewline := append(data, []byte("\n")...) - - _, err = f.Write(dataWNewline) - err = f.Close() - return err -}