Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove explain #82

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions default.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ func Unmarshal(path string, target any) error {
return Default().Unmarshal(path, target)
}

// Explain provides information about how Config resolve each value
// from loaders for the given path.
// The path is case-insensitive.
//
// If there are sensitive information (e.g. password, secret) which should not be exposed,
// you can use [WithValueFormatter] to pass a value formatter to blur the information.
func Explain(path string, opts ...ExplainOption) string {
return Default().Explain(path, opts...)
}

// OnChange registers a callback function that is executed
// when the value of any given path in the default Config changes.
// The paths are case-insensitive.
Expand Down
Loading