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

@ -2,7 +2,7 @@
package core
var (
const (
IndexURI = "/"
TotpURI = "/totp"
LoginURI = "/login"

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)

View file

@ -18,6 +18,8 @@ type Result struct {
HTML template.HTML
}
type Results []Result
type Path struct {
Name string
Abs string