We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
config#FromYAMLFile()
1 parent b49f082 commit afec917Copy full SHA for afec917
config/config.go
@@ -20,6 +20,9 @@ var ErrInvalidArgument = stderrors.New("invalid argument")
20
// FromYAMLFile parses the given YAML file and stores the result
21
// in the value pointed to by v. If v is nil or not a pointer,
22
// 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.
26
//
27
// Example usage:
28
0 commit comments