Compare commits
3 Commits
31d94a35fd
...
7c8868892a
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c8868892a | |||
| 26c63dcfc9 | |||
| bc7b64ca3d |
@@ -0,0 +1,2 @@
|
|||||||
|
build/
|
||||||
|
data/
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
micro info seite
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
micro startseite
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
module microblog
|
||||||
|
|
||||||
|
go 1.25.0
|
||||||
|
|
||||||
|
require github.com/yuin/goldmark v1.4.2
|
||||||
@@ -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
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user