diff options
author | Francis Lavoie <[email protected]> | 2024-04-24 15:15:46 -0400 |
---|---|---|
committer | Francis Lavoie <[email protected]> | 2024-04-24 15:15:46 -0400 |
commit | 877220c2e4f6769ecb5cdc39f70278545ea29bf0 (patch) | |
tree | f50da352bdfd3e64d1ab6a86e5625a350f28d604 | |
parent | 5af105fa9e97323fb0671b8d8adc7b5ebc55fc1c (diff) | |
download | caddy-file-placeholder.tar.gz caddy-file-placeholder.zip |
Experimental commentfile-placeholder
-rw-r--r-- | replacer.go | 4 |
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 { |