aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2025-03-07 22:42:02 -0500
committerPaul Duncan <pabs@pablotron.org>2025-03-07 22:42:02 -0500
commit46aea562825715a602e073c7407c65ac4ca564c8 (patch)
tree32558c8cd7d5dd1ca70e7d1087ff2814062f672e
parent0b5032f3f17f0fff2bea686067cce19a79dd4bb1 (diff)
downloadjim-bot-46aea562825715a602e073c7407c65ac4ca564c8.tar.xz
jim-bot-46aea562825715a602e073c7407c65ac4ca564c8.zip
main.go: minor comment fixesr20250308
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index d6d7455..c3d5ab3 100644
--- a/main.go
+++ b/main.go
@@ -1,3 +1,5 @@
+// Minimal jim-bot web interface wrapper which generates 10 random
+// corporate gibberish sentences on page load.
package main
import (
@@ -10,10 +12,10 @@ import (
// serve home page
func doHome(w http.ResponseWriter, _ *http.Request) {
- // generate respones body
+ // generate response body
body := []byte(strings.Join(bot.N(10), "\n") + "\n")
- // write header and response
+ // write response header and body
w.Header().Add("Content-Type", "text/plain")
if _, err := w.Write(body); err != nil {
log.Print(err)