Skip to content

Commit

Permalink
fix ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Patrick committed Feb 27, 2024
1 parent 5d14f2e commit 7499355
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func LoadConfig(ctx context.Context, path string) (*Config, error) {
- [INI Files](https://pkg.go.dev/github.com/zpatrick/cfg#INIFile)
- [TOML Files](https://pkg.go.dev/github.com/zpatrick/cfg#TOMLFile)

For **YAML** files, please see the [local](https://github.com/zpatrick/cfg/blob/main/example_yaml_test.go) or [Godoc](https://pkg.go.dev/github.com/zpatrick/cfg#example-YAML) example.
For **YAML** files, please see the [example](https://github.com/zpatrick/cfg/blob/main/example_yaml_test.go).

# Validation
A setting may specify a [Validator](https://pkg.go.dev/github.com/zpatrick/cfg#Validator) which will check whether or not a provided value is valid.
Expand Down
2 changes: 1 addition & 1 deletion example_yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type yamlFile struct {
} `yaml:"server"`
}

func Example_YAML() {
func ExampleYAML() {
const data = `
timeout: 5s
server:
Expand Down

0 comments on commit 7499355

Please sign in to comment.