mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-24 13:44:08 +00:00
The package has been deprecated as part of 1.16 and the same functionality is now provided by either the io or the os package. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
18 lines
328 B
Go
18 lines
328 B
Go
//
|
|
// Copyright (c) 2018 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package main
|
|
|
|
import "os"
|
|
|
|
func createEmptyFile(path string) (err error) {
|
|
return os.WriteFile(path, []byte(""), testFileMode)
|
|
}
|
|
|
|
func createFile(file, contents string) error {
|
|
return os.WriteFile(file, []byte(contents), testFileMode)
|
|
}
|