Skip to content

Commit

Permalink
Fix mock.yml path in docs. Closes #178.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 27, 2022
1 parent 654ca74 commit 9d2379c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -64,7 +64,7 @@ func main() {
}

// Load YAML config and merge into the previously loaded config (because we can).
k.Load(file.Provider("mock/mock.yaml"), yaml.Parser())
k.Load(file.Provider("mock/mock.yml"), yaml.Parser())

fmt.Println("parent's name is = ", k.String("parent1.name"))
fmt.Println("parent's ID is = ", k.Int("parent1.id"))
Expand Down Expand Up @@ -105,7 +105,7 @@ func main() {
}

// Load YAML config and merge into the previously loaded config (because we can).
k.Load(file.Provider("mock/mock.yaml"), yaml.Parser())
k.Load(file.Provider("mock/mock.yml"), yaml.Parser())

fmt.Println("parent's name is = ", k.String("parent1.name"))
fmt.Println("parent's ID is = ", k.Int("parent1.id"))
Expand Down Expand Up @@ -454,7 +454,7 @@ func main() {
}

// Load YAML config and merge into the previously loaded config (because we can).
k.Load(file.Provider("mock/mock.yaml"), yaml.Parser())
k.Load(file.Provider("mock/mock.yml"), yaml.Parser())

fmt.Println("parent's name is = ", k.String("parent1.name"))
fmt.Println("parent's ID is = ", k.Int("parent1.id"))
Expand Down
2 changes: 1 addition & 1 deletion examples/default-values/main.go
Expand Up @@ -29,7 +29,7 @@ func main() {
}

// Load YAML config and merge into the previously loaded config (because we can).
k.Load(file.Provider("mock/mock.yaml"), yaml.Parser())
k.Load(file.Provider("mock/mock.yml"), yaml.Parser())

fmt.Println("parent's name is = ", k.String("parent1.name"))
fmt.Println("parent's ID is = ", k.Int("parent1.id"))
Expand Down
2 changes: 1 addition & 1 deletion examples/read-file/main.go
Expand Up @@ -21,7 +21,7 @@ func main() {
}

// Load YAML config and merge into the previously loaded config (because we can).
k.Load(file.Provider("mock/mock.yaml"), yaml.Parser())
k.Load(file.Provider("mock/mock.yml"), yaml.Parser())

fmt.Println("parent's name is = ", k.String("parent1.name"))
fmt.Println("parent's ID is = ", k.Int("parent1.id"))
Expand Down

0 comments on commit 9d2379c

Please sign in to comment.