We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
config#FromYAMLFile()
1 parent 734edd3 commit b265b72Copy full SHA for b265b72
config/config.go
@@ -19,6 +19,9 @@ var ErrInvalidArgument = stderrors.New("invalid argument")
19
// FromYAMLFile parses the given YAML file and stores the result
20
// in the value pointed to by v. If v is nil or not a pointer,
21
// FromYAMLFile returns an [ErrInvalidArgument] error.
22
+// It is possible to define default values via the struct tag `default`.
23
+// The function also validates the configuration using the Validate method
24
+// of the provided [Validator] interface.
25
//
26
// Example usage:
27
0 commit comments