ui balance filters and groups to houseyMcHouseface
This commit is contained in:
@@ -1,32 +1,16 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
_ "embed"
|
||||
|
||||
"gogs.inhome.blapointe.com/ana-ledger/src/ledger"
|
||||
)
|
||||
|
||||
//go:embed public/*
|
||||
var _staticFileDir embed.FS
|
||||
var publicHandler = func() http.Handler {
|
||||
if os.Getenv("DEBUG") != "" {
|
||||
return http.FileServer(http.Dir("./http/public"))
|
||||
}
|
||||
sub, err := fs.Sub(_staticFileDir, "public")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return http.FileServer(http.FS(sub))
|
||||
}()
|
||||
|
||||
func Main() {
|
||||
likeName := flag.String("like-name", ".", "regexp to match")
|
||||
likeBefore := flag.String("like-before", "9", "date str to compare")
|
||||
|
||||
Reference in New Issue
Block a user