Skip to content

Commit afec917

Browse files
committed
Extend config#FromYAMLFile() documentation
1 parent b49f082 commit afec917

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ var ErrInvalidArgument = stderrors.New("invalid argument")
2020
// FromYAMLFile parses the given YAML file and stores the result
2121
// in the value pointed to by v. If v is nil or not a pointer,
2222
// FromYAMLFile returns an [ErrInvalidArgument] error.
23+
// It is possible to define default values via the struct tag `default`.
24+
// The function also validates the configuration using the Validate method
25+
// of the provided [Validator] interface.
2326
//
2427
// Example usage:
2528
//

0 commit comments

Comments
 (0)