summaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go12
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"}