mirror of https://github.com/tidwall/gjson.git
comments removed
This commit is contained in:
parent
88b0f02427
commit
03b95eb3fe
2
gjson.go
2
gjson.go
|
@ -2821,8 +2821,6 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddModifier binds a custom modifier command to the GJSON syntax.
|
// AddModifier binds a custom modifier command to the GJSON syntax.
|
||||||
// This operation is not thread safe and should be executed prior to
|
|
||||||
// using all other gjson function.
|
|
||||||
func AddModifier(name string, fn func(json, arg string) string) {
|
func AddModifier(name string, fn func(json, arg string) string) {
|
||||||
modifiers.Store(name, fn)
|
modifiers.Store(name, fn)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue