added base path filter

This commit is contained in:
ston1th 2019-05-03 10:44:17 +02:00
commit ec5a376733
15 changed files with 104 additions and 44 deletions

View file

@ -1,15 +1,12 @@
package core
import "time"
const (
timeFmt = "2006-01-02 15:04:05"
fileFmt = "20060102_150405"
import (
"time"
)
func Now() string {
return time.Now().Format(timeFmt)
}
const (
fileFmt = "20060102_150405"
)
func FileName() string {
return time.Now().Format(fileFmt)