edit port 8085

This commit is contained in:
2026-07-12 20:21:36 +02:00
parent 31d94a35fd
commit bc7b64ca3d
6 changed files with 11 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
micro info seite
+1
View File
@@ -0,0 +1 @@
micro startseite
+5
View File
@@ -0,0 +1,5 @@
module microblog
go 1.25.0
require github.com/yuin/goldmark v1.4.2
+2
View File
@@ -0,0 +1,2 @@
github.com/yuin/goldmark v1.4.2 h1:5qVKCqCRBaGz8EepBTi7pbIw8gGCFnB1Mi6kXU4dYv8=
github.com/yuin/goldmark v1.4.2/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg=
Executable
BIN
View File
Binary file not shown.
+2 -3
View File
@@ -13,7 +13,6 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/yuin/goldmark" "github.com/yuin/goldmark"
) )
@@ -21,8 +20,8 @@ const articlesDir = "data/articles"
func main() { func main() {
http.HandleFunc("/", handlePage) http.HandleFunc("/", handlePage)
println("Server läuft auf http://localhost:8080") println("Server läuft auf http://localhost:8085")
http.ListenAndServe(":8080", nil) http.ListenAndServe(":8085", nil)
} }
func handlePage(w http.ResponseWriter, r *http.Request) { func handlePage(w http.ResponseWriter, r *http.Request) {