|
|
@@ -13,7 +13,7 @@ func FileExt(fname string) string { |
|
|
|
} |
|
|
|
|
|
|
|
func FilePutContents(fileName string, content string) { |
|
|
|
fd, _ := os.OpenFile("./tmp/"+fileName+".log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644) |
|
|
|
fd, _ := os.OpenFile("./tmp/"+fileName+".logs", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644) |
|
|
|
fd_time := time.Now().Format("2006-01-02 15:04:05") |
|
|
|
fd_content := strings.Join([]string{"[", fd_time, "] ", content, "\n"}, "") |
|
|
|
buf := []byte(fd_content) |
|
|
|