Started adding functionality to log results directly to files
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2022-02-26 16:42:13 -05:00
parent 7a8503ed3e
commit 56f1982837
3 changed files with 35 additions and 3 deletions

16
lib/io.go Normal file
View File

@ -0,0 +1,16 @@
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()
}