summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-14 11:39:22 -0600
committerJeff Carr <[email protected]>2024-01-14 11:39:22 -0600
commitfb00271cef0fed9b5935ca5298a00115cbb81b3a (patch)
tree1ffc7151f49a306a33560f8c921552ec6610928d /main.go
parent46959efd7beedde1585305d3d0cf2e6c127f3417 (diff)
update repomaps
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 208402a..c9a358e 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "os"
"fmt"
"go.wit.com/log"
"net/http"
@@ -11,6 +12,8 @@ import (
//go:embed files/*
var htmlFiles embed.FS
+var accessf, clientf *os.File
+
// remove '?' part and trailing '/'
func cleanURL(url string) string {
url = "/" + strings.Trim(url, "/")
@@ -81,6 +84,8 @@ func findFile(w http.ResponseWriter, filename string) {
}
func main() {
+ accessf, _ = os.OpenFile("/home/jcarr/accessclient.log", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666)
+ clientf, _ = os.OpenFile("/home/jcarr/httpclient.log", os.O_RDWR | os.O_CREATE | os.O_APPEND, 0666)
/*
pfile, err := htmlFiles.ReadFile("html/repo.html")
if (err != nil) {