hardware-tests/lib/io.go
Gregory Ballantine 56f1982837
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Started adding functionality to log results directly to files
2022-02-26 16:42:13 -05:00

17 lines
220 B
Go

package lib
import (
"fmt"
"os"
)
func WriteToFile(filepath string, content string) {
file, err := os.Create(filepath)
if err != nil {
fmt.Println(err)
} else {
file.WriteString(content)
}
file.Close()
}