Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2' into string-slice-overwrite-…
Browse files Browse the repository at this point in the history
…on-set
  • Loading branch information
meatballhat committed May 5, 2016
2 parents a1e5328 + 75b97d0 commit a4590ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<!-- {
"output": "boom! I say!"
} -->
``` go
package main

Expand Down Expand Up @@ -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:

<!-- {
"output": "Hello friend!"
} -->
``` go
package main

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.:

<!-- {
"output": "Ha HA. I pwnd the help!!1"
} -->
``` go
package main

Expand Down

0 comments on commit a4590ca

Please sign in to comment.