diff options
| author | Alex Flint <[email protected]> | 2016-07-31 09:21:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-31 09:21:49 -0700 |
| commit | a5617823b012e94b9775ab865da29785cd6909d1 (patch) | |
| tree | 62d7e98075b1da950cdfd4fd17dab6c40022f4bf /example_test.go | |
| parent | 34b52501bde875853375c4e2b968a56b4168e790 (diff) | |
| parent | 5800b89ce9817f99b805776fe86046e2a26dc536 (diff) | |
Merge pull request #35 from alexflint/fix_example_names
fix example function names
Diffstat (limited to 'example_test.go')
| -rw-r--r-- | example_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example_test.go b/example_test.go index bdba6ac..6fb5197 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( ) // This example demonstrates basic usage -func Example_Basic() { +func Example() { // These are the args you would pass in on the command line os.Args = []string{"./example", "--foo=hello", "--bar"} @@ -19,7 +19,7 @@ func Example_Basic() { } // This example demonstrates arguments that have default values -func Example_DefaultValues() { +func Example_defaultValues() { // These are the args you would pass in on the command line os.Args = []string{"--help"} @@ -33,7 +33,7 @@ func Example_DefaultValues() { } // This example demonstrates arguments that are required -func Example_RequiredArguments() { +func Example_requiredArguments() { // These are the args you would pass in on the command line os.Args = []string{"--foo=1", "--bar"} @@ -45,7 +45,7 @@ func Example_RequiredArguments() { } // This example demonstrates positional arguments -func Example_PositionalArguments() { +func Example_positionalArguments() { // These are the args you would pass in on the command line os.Args = []string{"./example", "in", "out1", "out2", "out3"} @@ -59,7 +59,7 @@ func Example_PositionalArguments() { } // This example demonstrates arguments that have multiple values -func Example_MultipleValues() { +func Example_multipleValues() { // The args you would pass in on the command line os.Args = []string{"--help"} @@ -72,7 +72,7 @@ func Example_MultipleValues() { } // This example shows the usage string generated by go-arg -func Example_UsageString() { +func Example_usageString() { // These are the args you would pass in on the command line os.Args = []string{"--help"} |
