Gregory Ballantine
90f679c366
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All test commands now utilize the "-l" or "--log" flag to specify a file to log results to. Reviewed-on: #2
17 lines
220 B
Go
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()
|
|
}
|