finished tag implementation

This commit is contained in:
ston1th 2019-08-24 14:27:58 +02:00
commit c3076c328a
28 changed files with 396 additions and 296 deletions

View file

@ -8,6 +8,7 @@ const (
LoginURI = "/login"
LogoutURI = "/logout"
SearchURI = "/search"
LogsURI = "/logs"
TagsURI = "/tags"
UserURI = "/user"

View file

@ -9,6 +9,7 @@ import (
const (
fileFmt = "20060102_150405"
logFmt = "2006/01/02 15:04:05: "
)
var m sync.Mutex
@ -21,3 +22,7 @@ func FileName() string {
}()
return time.Now().Format(fileFmt)
}
func LogTime() string {
return time.Now().Format(logFmt)
}

View file

@ -30,6 +30,7 @@ type Path struct {
Abs string
Flag bool
Scan bool
Tags []string
}
type Paths []Path