Compare commits

..

3 Commits

Author SHA1 Message Date
ds 7c8868892a add .gitignore 2026-07-12 20:27:53 +02:00
ds 26c63dcfc9 add .gitignore 2026-07-12 20:27:53 +02:00
ds bc7b64ca3d edit port 8085 2026-07-12 20:27:53 +02:00
6 changed files with 13 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
build/
data/
+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=
+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) {