logoalt Hacker News

stirfishyesterday at 9:54 PM2 repliesview on HN

    func specialHandler(w http.ResponseWriter, r *http.Request) {
 if time.Now().Weekday() == time.Tuesday {
  http.NotFound(w, r)
  return
 }

     fmt.Fprintln(w, "server made a decision")
    }
Your server can make decisions however you program it to, you know? It's just software.

Forgive the phone-posting.


Replies

cobbzillatoday at 12:41 AM

and what server software is running this code in 1995?

show 1 reply