chore: gofmt sources

This commit is contained in:
Christian Muehlhaeuser
2022-08-15 11:58:40 +02:00
parent a7b1d7c737
commit 1e1b5f716d
7 changed files with 107 additions and 112 deletions

View File

@@ -12,12 +12,12 @@ import (
//
// Don't forget to close the file when you're done with it.
//
// f, err := LogToFile("debug.log", "debug")
// if err != nil {
// fmt.Println("fatal:", err)
// os.Exit(1)
// }
// defer f.Close()
// f, err := LogToFile("debug.log", "debug")
// if err != nil {
// fmt.Println("fatal:", err)
// os.Exit(1)
// }
// defer f.Close()
func LogToFile(path string, prefix string) (*os.File, error) {
f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {