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

fetch-latest-xkcd.go (192B)


      1 package xkcd
      2 
      3 // Return message about the latest xkcd.
      4 func FetchLatestXKCD() (msg string) {
      5 	api := latestAPI()
      6 	data := xkcdAPI(api)
      7 	num := data.Num
      8 	msg = FetchThisXKCD(num)
      9 	return msg
     10 }