Skip to content

Commit

Permalink
Fix example names (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Apr 28, 2023
1 parent 68ef706 commit fdfa106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type MyConfig struct {
}
}

func Example_SimpleUsage() {
func Example_simpleUsage() {
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
SkipDefaults: true,
Expand All @@ -42,7 +42,7 @@ func Example_SimpleUsage() {
// Auth.Pass: ""
}

func Example_WalkFields() {
func Example_walkFields() {
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
SkipFiles: true,
Expand All @@ -61,7 +61,7 @@ func Example_WalkFields() {
}

// Just load defaults from struct definition.
func Example_Defaults() {
func Example_defaults() {
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
SkipFiles: true,
Expand All @@ -84,7 +84,7 @@ func Example_Defaults() {
}

// Load defaults from struct defunition and overwrite with a file.
func Example_File() {
func Example_file() {
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
SkipEnv: true,
Expand All @@ -108,7 +108,7 @@ func Example_File() {

// Load defaults from struct definition and overwrite with a file.
// And then overwrite with environment variables.
func Example_Env() {
func Example_env() {
os.Setenv("EXAMPLE_HTTP_PORT", "3333")
os.Setenv("EXAMPLE_AUTH_USER", "env-user")
os.Setenv("EXAMPLE_AUTH_PASS", "env-pass")
Expand Down Expand Up @@ -138,7 +138,7 @@ func Example_Env() {
// Load defaults from struct definition and overwrite with a file.
// And then overwrite with environment variables.
// Finally read command line flags.
func Example_Flag() {
func Example_flag() {
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
FlagPrefix: "ex",
Expand Down

0 comments on commit fdfa106

Please sign in to comment.