show-help.go (779B)
1 package xkcd 2 3 func ShowHelp() (msg string) { 4 msg = "Run `xkcd help' to show this message.\n" 5 msg += "+ `xkcd' to show the latest xkcd comic.\n" 6 msg += "+ `xkcd latest' to show the latest xkcd comic.\n" 7 msg += "+ `xkcd random' to fetch random xkcd comic.\n" 8 msg += "+ `xkcd get' will function same as `xkcd latest'.\n" 9 msg += "+ `xkcd get 303', for example, to fetch the comic numbered 303.\n" 10 msg += "+ `xkcd 807' will function same as `xkcd get 807'.\n" 11 msg += "+ `xkcd save', to save the latest comic to `/tmp', or\n" 12 msg += "+ `xkcd save 1312', to save the comic numbered 1312 to `/tmp'.\n" 13 msg += "+ `xkcd explain', open link to explainxkcd for the latest comic.\n" 14 msg += "+ `xkcd explain 1000', open link to explainxkcd for comic numbered 1000.\n" 15 return msg 16 }