From 11ad2b36c828c166547b33345d724667da2ae93a Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 4 May 2016 19:41:33 -0400 Subject: [PATCH] Assert output in some README examples --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 06f7b84..2ac96fd 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,9 @@ func main() { This app will run and show help text, but is not very useful. Let's give an action to execute and some help documentation: + ``` go package main @@ -77,6 +80,9 @@ Being a programmer can be a lonely job. Thankfully by the power of automation th Start by creating a directory named `greet`, and within it, add a file, `greet.go` with the following code in it: + ``` go package main @@ -210,6 +216,7 @@ Sometimes it's useful to specify a flag's value within the usage string itself. indicated with back quotes. For example this: + ```go cli.StringFlag{ Name: "config, c", @@ -504,6 +511,9 @@ templates are exposed as variables `AppHelpTemplate`, `CommandHelpTemplate`, and is possible by assigning a compatible func to the `cli.HelpPrinter` variable, e.g.: + ``` go package main