commit 8583a34
chld
·
2026-04-25 00:08:06 +0000 UTC
parent 7436ca2
new fortune method
+16,
-0
1@@ -0,0 +1,16 @@
2+so good
3+its chld
4+who you know and hate
5+fuck, man
6+cholodu
7+codeberg
8+sourcehut is ran by a pedo
9+im unsure
10+imo
11+im green
12+how do you know my ip
13+im not european, stop saying so
14+neuswc
15+<a href=wayland.fyi>wayland</a>
16+<a href=9larp.net>is down</a>
17+nusrat is unwise
M
srv.go
+3,
-2
1@@ -6,11 +6,12 @@ import (
2 "math/rand"
3 "time"
4 "os"
5+ "strings"
6 )
7
8 func handler(w http.ResponseWriter, r *http.Request) {
9- var fortune = [...]string{"so good", "its chld","who you know and hate","fuck","cholodu", "codeberg.org","im unsure",
10- "imo", "im green", "neuswc", "wayland", "<a href=9larp.net>is down</a>"}
11+ fr, _ := os.ReadFile("./a/fortune")
12+ fortune := strings.Split(string(fr), "\n")
13 rand.Seed(time.Now().UnixNano())
14
15 f, _ := os.ReadFile("./a/style.css")