From 0f22ab3e39c2d6fecc01e282b958d30ab1b30a83 Mon Sep 17 00:00:00 2001 From: gutmet Date: Wed, 4 Nov 2020 23:37:26 +0100 Subject: [PATCH] output file: missing '-' before timestamp --- TDL.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TDL.go b/TDL.go index d6861bf..f469b34 100644 --- a/TDL.go +++ b/TDL.go @@ -30,7 +30,7 @@ func outfile(infile string) io.Writer { basename := path.Base(infile) extension := path.Ext(basename) basename = strings.TrimSuffix(basename, extension) - name := basename + time.Now().Format(STAMP_FORMAT) + ".txt" + name := basename + "-" + time.Now().Format(STAMP_FORMAT) + ".txt" f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY, 0644) if err != nil { fmt.Fprintln(os.Stderr, err)