xkcd-go

Golang tool to read latest, random, or a specific xkcd comic (and download it too).
git clone http://git.hanabi.in/repos/xkcd-go.git
Log | Files | Refs | README | LICENSE

handle-404.go (269B)


      1 package xkcd
      2 
      3 // comic number 404 was an easter egg, handle it separately.
      4 func handle404() (msg string) {
      5 	msg = "Comic from 2008-4-1:\n\"404 Not Found (404)\"\n\nhttps://xkcd.com/404\n\nNeed explainer?\nhttps://www.explainxkcd.com/wiki/index.php/404\n"
      6 	return msg
      7 }