We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c887fed commit df34f55Copy full SHA for df34f55
cmd/ts/ts.go
@@ -54,11 +54,7 @@ func run(cmd *cobra.Command, args []string) error {
54
55
scanner := bufio.NewScanner(cmd.InOrStdin())
56
for scanner.Scan() {
57
- _, _ = fmt.Fprintln(cmd.OutOrStdout(), timestamp(format), scanner.Text())
+ _, _ = fmt.Fprintln(cmd.OutOrStdout(), time.Now().Format(format), scanner.Text())
58
}
59
return scanner.Err()
60
61
-
62
-func timestamp(format string) string {
63
- return time.Now().Format(format)
64
-}
0 commit comments