ui balance filters and groups to houseyMcHouseface

This commit is contained in:
bel
2024-07-20 09:48:46 -06:00
parent 6d174b031b
commit ee6ce95c0a
3 changed files with 44 additions and 35 deletions

View File

@@ -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")