aboutsummaryrefslogtreecommitdiffhomepage
path: root/replacer.go
diff options
context:
space:
mode:
Diffstat (limited to 'replacer.go')
-rw-r--r--replacer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/replacer.go b/replacer.go
index 175339560..e5d2913e9 100644
--- a/replacer.go
+++ b/replacer.go
@@ -62,12 +62,14 @@ func NewEmptyReplacer() *Replacer {
type Replacer struct {
providers []replacementProvider
static map[string]any
- mapMutex *sync.RWMutex
+ mapMutex *sync.RWMutex
}
// WithoutFile returns a copy of the current Replacer
// without support for the {file.*} placeholder, which
// may be unsafe in some contexts.
+//
+// EXPERIMENTAL: Subject to change or removal.
func (r *Replacer) WithoutFile() *Replacer {
rep := &Replacer{static: r.static}
for _, v := range r.providers {