added base path filter
This commit is contained in:
parent
98b53d3a33
commit
ec5a376733
15 changed files with 104 additions and 44 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package core
|
||||
|
||||
var (
|
||||
const (
|
||||
IndexURI = "/"
|
||||
TotpURI = "/totp"
|
||||
LoginURI = "/login"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ type Result struct {
|
|||
HTML template.HTML
|
||||
}
|
||||
|
||||
type Results []Result
|
||||
|
||||
type Path struct {
|
||||
Name string
|
||||
Abs string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue