From bf3dd4239fe2142211a617b2ffdaa45d5a907fe4 Mon Sep 17 00:00:00 2001 From: ktong Date: Fri, 2 Feb 2024 09:34:54 -0800 Subject: [PATCH] remove explain --- default.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/default.go b/default.go index e6f15735..4b373d2d 100644 --- a/default.go +++ b/default.go @@ -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.