Skip to content

Commit

Permalink
Experimental comment
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed Apr 24, 2024
1 parent 5af105f commit 877220c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion replacer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 877220c

Please sign in to comment.