From 5800b89ce9817f99b805776fe86046e2a26dc536 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Sun, 31 Jul 2016 09:14:44 -0700 Subject: fix example function names --- example_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'example_test.go') 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"} -- cgit v1.2.3